Jump to content

Tunidbformattednumberedit error '-' is not a valid floating point value


donlego

Recommended Posts

Tunidbformattednumberedit error '-' is not a valid floating point value

 

error show when add minus value

like

-1000

-2000

 

the control cannot accept minus(-)

 

 

 

profesional edition 1.0.0.1424 (trial)

 

Link to comment
Share on other sites

  • 4 months later...

Hello
any updates about this bug?
I have completed the conversion application from desktop to unigui
and want to deploy applications to my customers there are still minor problems in this component
Tunidbformattednumberedit cannot input minus

 

 

post-191-0-17544200-1533218140_thumb.png

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

 

my current unigui version now is 1479 ,

 

i try to istall and unistall the 1479 ver but still happen on my old project

it happen if the form have onkeydown event and form keypreview=true, need the form onkeydown

here i attach the test case ,

put minus value on the third  edit

ex -90000

 

test_case.rar

Link to comment
Share on other sites

On 2/8/2019 at 6:45 AM, donlego said:

hello tokay can you tell me which part on the uniedit.pas source i must replace to make minus/- work

As I said, you can try to replace StrToFloat to StrToFloatDef:

Self.Value := StrToFloatDef(AValue, 0, FmtSettings)

FValue := StrToFloatDef(S, 0, FmtSettings);

Link to comment
Share on other sites

8 hours ago, Tokay said:

As I said, you can try to replace StrToFloat to StrToFloatDef:

Self.Value := StrToFloatDef(AValue, 0, FmtSettings) 

FValue := StrToFloatDef(S, 0, FmtSettings);

thank you this works, only for a temporary solution
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...