delphi - TJvValidateEdit, Language Settings, Variants and Float Issues -


in jvvalidateedit value property variant behaves strangely different windows language settings when setting or getting float. if customize windows number formatting default settings comma decimals , dots thousands separator value appears correctly. e.g. float of 1.23 displayed "1,23".

however if change windows language spanish has same number formatting real number assigned displayed incorrectly. e.g. 1.23 value displayed "123".

if assign string text ( ed.text := floattostr ( 1.23 ) appears correctly if try , access number reformatted.

when trace through code problem seems occurring before jvvalidateedit starts processing it. appears compiler trying convert string in order assign variant it's doing wrong. unfortunately been long time since i've looked @ assembler , ibm 360.

i'm using xe , generating 32bit code if makes difference.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -