donlego Posted March 6, 2018 Share Posted March 6, 2018 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 More sharing options...
donlego Posted August 2, 2018 Author Share Posted August 2, 2018 Helloany updates about this bug?I have completed the conversion application from desktop to uniguiand want to deploy applications to my customers there are still minor problems in this componentTunidbformattednumberedit cannot input minus Link to comment Share on other sites More sharing options...
donlego Posted August 2, 2018 Author Share Posted August 2, 2018 unigui ver 1472 pro delphi xe 7 browser chrome , firefox Link to comment Share on other sites More sharing options...
Ron Posted August 2, 2018 Share Posted August 2, 2018 I had the same issue, and solved it temporary by using a TUniEdit control and deleting anything but digits and - and "," at the OnKeyUp event. Link to comment Share on other sites More sharing options...
Tokay Posted August 14, 2018 Share Posted August 14, 2018 I probably found place of this bug It could be fixed in source. I reported it to the support portal. Link to comment Share on other sites More sharing options...
donlego Posted August 21, 2018 Author Share Posted August 21, 2018 up.. Link to comment Share on other sites More sharing options...
Tokay Posted August 21, 2018 Share Posted August 21, 2018 If you have the sources, you can try to change StrToFloat to StrToFloatDef. Generally, the best practice is not to use StrToFloat anywhere. Link to comment Share on other sites More sharing options...
donlego Posted August 21, 2018 Author Share Posted August 21, 2018 Hi tokay, what source? Is unigui source ? Link to comment Share on other sites More sharing options...
Tokay Posted August 21, 2018 Share Posted August 21, 2018 Is unigui source ? Yes, I've made fixes in uniEdit.pas Link to comment Share on other sites More sharing options...
donlego Posted February 8, 2019 Author Share Posted February 8, 2019 On 8/22/2018 at 4:24 AM, Tokay said: Yes, I've made fixes in uniEdit.pas hello tokay can you tell me which part on the uniedit.pas source i must replace to make minus/- work Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 8, 2019 Share Posted February 8, 2019 Hi I can't reproduce it. Is it possible to create test case? Link to comment Share on other sites More sharing options...
donlego Posted February 9, 2019 Author Share Posted February 9, 2019 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 More sharing options...
Hayri ASLAN Posted February 9, 2019 Share Posted February 9, 2019 Confirmed. Link to comment Share on other sites More sharing options...
Tokay Posted February 11, 2019 Share Posted February 11, 2019 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 More sharing options...
donlego Posted February 12, 2019 Author Share Posted February 12, 2019 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now