question

Axel Kohonen avatar image
1 Like"
Axel Kohonen asked Phil BoBo commented

Possible to use locale setting in FlexSim?

Hi,

Is it or will it some time in the future be possible to use a locale setting with FlexSim? That is set the decimal separator etc. to the ones used in a certain country? Generally most people have Excel in their local locale so importing and exporting data might need a bit of special handling if FlexSim only uses the American locale.

Thank you!

Kind regards,

Axel

FlexSim 18.2.2
languagedecimal separatorlocale
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Axel Kohonen commented

The external communication mechanisms in FlexSim already have special handling for the system's locale settings. That's not a problem.

The main concern with doing this is the discrepancy between code and other numbers. Number literals within programming languages are typically not localized. In code, every character has a precise meaning, including periods and commas.

In Excel, there's a clear delineation between formulas and VBA. Formulas and cell text can be displayed in the user's locale setting just fine, but as far as I can tell, VBA is always displayed using the English decimal separator (period).

FlexScript numbers and the FlexScript code editor are embedded all over the FlexSim software, such as the Process Time field.

I think it may be more confusing if we localized the edit fields, tables, and tree view, but not code fields. For example, on an Operator's properties, the Max Speed would be localized but the Load Time would not:

I think it would be more confusing that way than just leaving FlexSim as it is.

I welcome more comments from any users or distributors regarding this subject, especially those who use FlexSim on systems with different decimal, digit grouping, and list separators.

Also, in Excel, the cells store the actual value of the cell using English separators. For example, if you enter "=4,5+5,1" into Excel using German settings, and then you use VBA to get the value of the cell's formula, it returns "=4.5+5.1". This transformation happens transparently to the user, but in FlexSim, getting and setting the actual data directly is more common and this could become another source of confusion if we were able to somehow localize number literals in code windows. It would definitely cause a problem/confusion for executing strings, such as distributions stored in global tables as text data.


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.