skafinski Posted October 5, 2021 Share Posted October 5, 2021 Hi, I'm having funny behaviour of TUniFormattedNumberEdit when only setting MinValue. If i set MinValue to 0,1 (it is comma for decimal seperation yes) and not Max value (0) and then enter value higher than 0,01 it automatically restarts to 0,01 (as it is max value). Does anybody else getting this error.? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 5, 2021 Share Posted October 5, 2021 Hello, Which edition and build? Quote Link to comment Share on other sites More sharing options...
skafinski Posted October 6, 2021 Author Share Posted October 6, 2021 16 hours ago, Sherzod said: Hello, Which edition and build? 1.90.0.1546 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2021 Share Posted October 6, 2021 12 minutes ago, skafinski said: 1.90.0.1546 Okay. Trial version? Quote Link to comment Share on other sites More sharing options...
skafy Posted October 6, 2021 Share Posted October 6, 2021 No. It is purchased but loged in with wrong account Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2021 Share Posted October 6, 2021 2 minutes ago, skafy said: It is purchased but loged in with wrong account Okay. 17 hours ago, skafinski said: I'm having funny behaviour of TUniFormattedNumberEdit when only setting MinValue. If i set MinValue to 0,1 (it is comma for decimal seperation yes) and not Max value (0) and then enter value higher than 0,01 it automatically restarts to 0,01 (as it is max value). Can you make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
skafinski Posted October 6, 2021 Author Share Posted October 6, 2021 Hi, Quote var edit: TUniFormattedNumberEdit; begin edit:= TUniFormattedNumberEdit.Create(Self); edit.Parent:= MainForm; edit.Align:= alTop; edit.DecimalSeparator:= ','; edit.MinValue:= StrToFloat('0,01'); If you then fill 15,15 it automatically changes back to 0,01. In our region it is comma as decimal seperator. Same problem happened if you set MinValue 0,01 it in design time. Quote Link to comment Share on other sites More sharing options...
skafinski Posted October 6, 2021 Author Share Posted October 6, 2021 If you set max I think this is OK. But I dont want ot set MaxValue. Quote Link to comment Share on other sites More sharing options...
skafinski Posted October 8, 2021 Author Share Posted October 8, 2021 any updates on this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2021 Share Posted October 8, 2021 On 10/6/2021 at 1:52 PM, skafinski said: If you set max I think this is OK. But I dont want ot set MaxValue. function beforeInit(sender, config) { if (config.minValue > config.maxValue) { config.maxValue = Number.MAX_VALUE } } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2021 Share Posted October 8, 2021 16 minutes ago, skafinski said: any updates on this? On 10/6/2021 at 12:02 PM, skafy said: No. It is purchased but loged in with wrong account Please adjust your forum email address or use the correct account. Quote Link to comment Share on other sites More sharing options...
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.