Multilingual Text Variable Concepts

Like system variables, multilingual text variables can be used in a number of places, such as default values for a field in the Repository, in validation rules or as parameters in RDML commands.

Unlike system variables, multilingual text variables are specific to a partition.

The following example of a text string means the same thing in different languages, but has a different textual value in each language:

"Locate Employee by Name"

"Ricerca Alfabetica Impiegati"

"Zoek Werknemer op Naam"

If this was a piece of text that you wished to place on a screen panel, a report, or send in a message, then a multilingual variable (sometimes called an *MTXT variable) should be used.

By positioning an *MTXT defaulted field on the screen, rather than just text, the values that appear on the screen panel at execution time will vary according to the language being used.

In many respects *MTXT variables are just like system variables (described in System Variable Concepts), and they can be used in the same places as system variables:

The extensive use of multilingual variables in validation rules has many advantages:

For example, imagine that you have created these multilingual variables:


"Monday" in all desired languages


"Tuesday" in all desired languages


"Wednesday" in all desired languages


"Thursday" in all desired languages


"Friday" in all desired languages


"Saturday" in all desired languages


"Sunday" in all desired languages


"Day of week specified is invalid" in desired languages

Then, in just one list of values rule in the Repository, a table or an RDML program, you could validate the day of the week (in the current language) and issue an error message (in the current language).

Additionally, as the list of *MTXT variables grows, they will become used repeatedly in different applications. For instance *MTXTMON, *MTXTTUE, etc might be used as column headings on screen panels or reports.

Note: Before attempting to make large scale use of *MTXT variables, please develop and use naming standards for them.

Also see

Create Multilingual Variables in the Visual LANSA User Guide.

REP004 - System and Multilingual Variables in the Repository Tutorial.