movedown Posted May 2, 2013 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 2, 2013 Administrators Share Posted May 2, 2013 Numberedit can only save numbers. Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2013 Share 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... Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 3, 2013 Administrators Share Posted May 3, 2013 A feature request will be proper. Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2013 Share 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... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now