Morgan
15 years agoFrequent Contributor
Regionalization & Localization compatability
In Delphi, can you think of a way to set the decimal separator from '.' to ',' programmatically for any defined value throughout the script? Is there a way to call a line or two of code that will change it? For example, a line of code might have something like the following in a North American region...
Sys.Keys('0[Enter]3.6[Enter]7.3[Enter]13.0[Enter]20.0[Enter]');
But! When I change to a European region, what I want to use as input is commas instead of periods in place of decimals.
Any way to easily do this at the beginning of the script or am I stuck because it's using Sys.Keys?
Thanks,
Morgan
Sys.Keys('0[Enter]3.6[Enter]7.3[Enter]13.0[Enter]20.0[Enter]');
But! When I change to a European region, what I want to use as input is commas instead of periods in place of decimals.
Any way to easily do this at the beginning of the script or am I stuck because it's using Sys.Keys?
Thanks,
Morgan