What means ":U" at the end of format assignments?

storzi

Member
I often find the ":U" in Format assignments but cannot find
anything about it in the documentation.
For example:
Code:
DEFINE VARIABLE iKontonr AS INTEGER FORMAT "9999999":U INITIAL 0 
     LABEL "Kontonummer" 
     VIEW-AS FILL-IN 
     SIZE 15 BY 1 NO-UNDO.
Can anybody give me a hint?
 
That's a code for the translation manager from progress.

When you add :u at the end of an expression , you tell the translation manager to leave that expression alone. In that way you can "hard-code" some text in your program that may not be changed in anyway.
 
TranMan assumes that all strings should be translated. :U marks a string as untranslateable.

After about 2 nano-seconds of reading code one quickly comes to the conclusion that the opposite assumption should have been made ;-)
 
TranMan assumes that all strings should be translated. :U marks a string as untranslateable.

After about 2 nano-seconds of reading code one quickly comes to the conclusion that the opposite assumption should have been made ;-)

It really depends upon the market being served. It's quite easy to replace all instances of "999999" with {&sixNines} and then set

&glob sixNines "999999":u

thus placing all nontranslatable formatting options into a single include, leaving things such as widget titles to be translated. Of course, on the US side of the pond, assuming everything as untranslatable has its attractions.

Misguided attractions to be sure, but attractions none the less.
 
Back
Top