movedown Posted May 2, 2013 Posted May 2, 2013 Hi Farshad, I use the TUniDBNumberEdit bound to a Float field. When I emptied the TUniDBNumberEdit, there was an error: "null" is not a vaild floating point value. This is a bug? How can I save a null value with the TUniDBNumberEdit? Delphi XE2 UniGui version: 0.093.996 Browser: Last Version Chrome. thx. 1 Quote
Administrators Farshad Mohajeri Posted May 2, 2013 Administrators Posted May 2, 2013 Numberedit can only save numbers. Quote
Sherzod Posted May 3, 2013 Posted May 3, 2013 Numberedit can only save numbers. Hi Farshad. I think it is difficult to say, what is it a bug, but it needs to be solved (maybe a property as Default Value) ... This nasty error comes out every time you use the Number Fields (when the value becomes empty), of course, when used DataSet controls: UniDBEdit, UniDBNumberEdit, UniDBGrid etc. Thanks... Quote
Administrators Farshad Mohajeri Posted May 3, 2013 Administrators Posted May 3, 2013 A feature request will be proper. Quote
Sherzod Posted May 16, 2013 Posted May 16, 2013 How can I save a null value with the TUniDBNumberEdit? hi Dsciral. try this add to designtime UniDBNumberEdit1 -> ClientEvents -> ExtEvents function OnKeyup (sender, e){ if (sender.getValue() == null) { sender.setValue(0); } } I hope that will help... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.