Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
UltraNumericEditor: Incorrect localization
posted

UltraNumericEditor does not localize numbers correctly compared to UltraMaskedEdit. I switched the region settings of the PC to German (Switzerland). Then - for testing puposes - I changed the decimal character from . to #. The thousands seperator is ' for Switzerland

UltraNumericEditor shows 12'345.67 thus ignoring the individuel decimal character while UltraMaskEdit correctly shows 12'345#67

Both controls have MaskInput / InputMask set to {LOC}nn.nnn,nn and no FormatString.

If for the UltraNumericEditor I set FormatString to ##.###,## the controls shows the correct decimal character (#) while not in edit mode. In edit mode still the point is used as decimal character.

We use Version 8.2.

Parents
No Data
Reply
  • 9298
    posted

    I am not getting the same result that you get.  I have attached a sample to this forum post which I would like to ask you to look at and see what I should to do bring about the behavior that you are getting.  To what have you set the NumericType property of the UltraNumericEditor?  I set it to Double.  Why are you not setting a FormatString?  I could not get that InputMask that you are using to work.  It said it was incompatible with the NumericType of the UltraNumericEditor.  I have included in the folder along with the project a screenshot showing the result that I get when I run my application.  You will see that the decimal character "#" is showing in the UltraNumericEditor.  Let me know what you think.

    FormattingSwissNumbers.zip
Children