Jump to content

Recommended Posts

Posted
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.

  • Upvote 1
Posted

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...

  • 2 weeks later...
Posted

 

  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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...