04-25-2014 01:49 AM
Hi there,
on numeric controls and indicators it is possible to set the decimal point (independently from regional settings) by using "%<DecimalPointCharacter>;" within its format string (either manually in its properties or programmatically via property node), but this works only for displaying the number (e.g. 3.14 with a format string "%,;%#_g" is shown as 3,14), not for the input of a number. The input seems only to follow the "Use localized decimal point" front panel setting in the LabVIEW options (I am not able to enter "3,14" as number in the numeric control described above, the number is cropped to 3).
Or in other words: How do I enter a numeric with comma as decimal point in a numeric control with EN(US) as regional setting?
Is there any way to fix this? My goal is to write a multilingual application with LabVIEW (all language settings reside in configuration files), where each language defines its own decimal point, regardless of regional settings.
Of course I can avoid this by using a string control, but then I lose all possibilities of a numeric control like range checking etc.
Best regards
Carsten
04-25-2014 02:24 AM
04-25-2014 02:35 AM
Hi GerdW,
simple answer: The customer's specifications
The reason behind it could be the ability to switch quickly between a, let's say, german and an english user.
But of course if there's no way to realize it, we have to discuss it.
But from the logical point of view: I you can modify the decimal point to your needs for displaying a number, why the input doesn't follow automatically?
Regards
Carsten