hexagon logo

IF_GOTO/C1.INPUT and multiple languages...

OK, I'm stumped (not really, but I would like a general solution).

If I have an IF_GOTO/C1.INPUT == "YES" in my program, it will break when I change PC-DMIS to Swedish.

So, I can write IF_GOTO/(C1.INPUT == "YES") or (C1.INPUT == "JA") to make it work in English and Swedish (and some more, like German).

But how do I write to have it work in the current language PC-DMIS is set to, whatever language that is?

In the Report Editor there's a function LOADSTR(xyz) which can get the current translation of string #xyz, but that doesn't work in a part program.
Parents
  • Thanks - yes, I know that; my main point was that PC-DMIS has a standard YES/NO question that works in all languages, but the returned result is language specific and there is no standard way to get the language specific "YES" and "NO" strings to compare with, making the YES/NO dialog worthless when your installation has more than one language available (and every non-English installation also has English available).

    If only the YES/NO dialog had returned the same strings irrespective of the current language (for example "YES"/"NO" or "1"/"0") all had been well...
Reply
  • Thanks - yes, I know that; my main point was that PC-DMIS has a standard YES/NO question that works in all languages, but the returned result is language specific and there is no standard way to get the language specific "YES" and "NO" strings to compare with, making the YES/NO dialog worthless when your installation has more than one language available (and every non-English installation also has English available).

    If only the YES/NO dialog had returned the same strings irrespective of the current language (for example "YES"/"NO" or "1"/"0") all had been well...
Children
No Data