$LangUst

From m204wiki
Revision as of 19:45, 21 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $LANGUST to $LangUst: Lower case change)
Jump to navigation Jump to search

The $LANGUST function translates back to its original form a string previously translated by $LANGSRT processing, which is useful for applications that maintain sorted arrays of data and need to display the values.

Syntax

$LANGUST('string'[,language])

where:

The string argument is a literal enclosed in quotation marks or a %variable containing the data in collating sequence to be translated back to its original form.

The optional language argument is the name of one of the defined languages, specifying which collating sequence to use. The language argument is handled as follows:

  • You can enter the name of a valid language enclosed in quotation marks or a %variable containing a valid language. If the value you enter is not supported, the request is canceled with an error message. See The LANGUSER parameter in the Rocket Model 204 Parameter and Command Reference Manual for the valid values.
  • An asterisk enclosed in quotation marks ('*') instructs Model 204 to use the value of the LANGUSER parameter.
  • When you omit the language argument, Model 204 performs the validation in U.S. English, even if the value of the LANGUSER parameter is not US, and lowercase characters are not recognized.

Note: If encoding information was truncated, either during $LANGSRT processing or during subsequent expression evaluation, then the $LANGUST function does not return the exact string that was originally translated by the $LANGSRT processing. Truncated variant characters are returned as the associated base character, for example, � is returned as A.

Example

If your site maintains two types of terminals and keyboards that store and display the same character set, individual characters might be assigned differing hexadecimal codes on different keyboards. You can translate the character equivalents back and forth as follows:

$LANGUST($LANGSRT(string,source-language), target-language)

A character without an equivalent converts to its base character. A special character without an equivalent converts to a space.