MSMK Posted October 10, 2023 Share Posted October 10, 2023 Доброе время суток. Подскажите почему при вводе значения с точкой 325.69 в поле UnimNumberEdit1, в свойстве Value выдает 0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 Здравствуйте, 2 minutes ago, =GGG= said: 325,.69 Что за значение? Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 1 minute ago, Sherzod said: Здравствуйте, Что за значение? исправил, 325.69 Sorry) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 Простите, как мы можем воспроизвести? Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 есть какое то свойство, чтобы можно было тип данных указывать, которое должно принимать поле? Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 4 minutes ago, Sherzod said: Простите, как мы можем воспроизвести? Введите значение с точкой, например 100.2 и нажмите кнопку. Заранее брекпоинт выставите в обработчике на кнопку. UnimNumberEdit1.Value выдаст значение 0 var value: Double; begin value := UnimNumberEdit1.Value; testNum.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 1 minute ago, =GGG= said: Введите значение с точкой, например 100.2 и нажмите кнопку. Заранее брекпоинт выставите в обработчике на кнопку. UnimNumberEdit1.Value выдаст значение 0 Вы на мобильном устройстве проверяете? Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 2 minutes ago, Sherzod said: Вы на мобильном устройстве проверяете? да, на мобильном Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 Я проверю. Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 15 minutes ago, Sherzod said: Я проверю. жду, спасибо Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 45 minutes ago, =GGG= said: жду, спасибо Попробуйте это решение: function painted(sender, eOpts) { var me=sender.inputElement; if (me) { me.dom.setAttribute('inputmode', 'decimal'); sender.setDecimalSeparator('.'); me.on('dirtychange', function() { sender._value = sender.rawValue }); me.on('keyup', function() { sender._value = sender.rawValue }); } } 1 Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 29 minutes ago, Sherzod said: Попробуйте это решение: function painted(sender, eOpts) { var me=sender.inputElement; if (me) { me.dom.setAttribute('inputmode', 'decimal'); sender.setDecimalSeparator('.'); me.on('dirtychange', function() { sender._value = sender.rawValue }); me.on('keyup', function() { sender._value = sender.rawValue }); } } Спасибо! 👌🏼 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2023 Share Posted October 10, 2023 Работает !? Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 10, 2023 Author Share Posted October 10, 2023 1 hour ago, Sherzod said: Работает !? да, работает 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 30, 2023 Share Posted December 30, 2023 @=GGG= Это исправлено в версии 1.95.0.1579. 1 Quote Link to comment Share on other sites More sharing options...
MSMK Posted January 3 Author Share Posted January 3 On 12/31/2023 at 1:01 AM, Sherzod said: @=GGG= Это исправлено в версии 1.95.0.1579. Отлично! С Новым годом! 1 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.