Use of ":U"

Anupama

New Member
Hi,

I have just started with Progress and I have seen the use of statements such as

STRING(TODAY,"99-99-9999":U) .

What does ":U" specify?

Thanks,
Anu.
 
Hi,

Progress has an add-on called the Translation Manager (or something to that effect), which allows you to translate your application to different languages.

:U means that the quoted string in your code is not to be translated by the translation manager (for instance for literals you use within the logic in your app). Other translation attributes are :L (Translatable Left Aligned) :R (same, but right aligned) and :C which is supposed to be centered.

You can also specify the maximum size of the translatable string (for instance to prevent labels getting too long and messing up your layout). :L50 then means that the string is to have a maximum of 50 characters.

I make it good practice for myself to always at least use :U for literals that are used in the logic of my apps and :L for translatable strings; this just in case someone gets the idea of wanting to start translating an app. At least that way you do not need to sift through your code when that happens (and it is only 2 characters extra typing and once you are used to doing it it is not that bad to do really).
 
Back
Top