Mess

mess gives access to the translatable text resources used by the SAFE X3 engine and the application layers (especially local menus and identified messages such as error messages).

Syntax

 mess(EXP_NUMBER,EXP_CHAP,EXP_TABLE)

Examples

 # The chapter 14 in table 1 contains the modules definition (local menu).# The 14th message is common core. Let's get the message in the default languageLocal Char COMMON_CORE(100)COMMON_CORE=mess(9,14,1)# Let's now get all the messages from the module table# The title of the menu local chapters are in chapter 0# The chapter 0 of the menu local associates a character to every choice.# The length of this message gives the number of choicesLocal Char TITLE_14(100)Local Integer NB_14,ILocal Char CHOICES_14(100)(1..)TITLE_14=mess(14,0,1)For I=1 To len(0,14,1)CHOICES_14(I)=mess(I,14,1)Next I

Description

mess gives access to the translatable texts defined in the dictionary and used by the user interface. These messages are organized in chapters that contain a list of messages. The text returned depends on the language used for the connection.

The table ID for these messages is always 1. A value of 0 is possible to access the messages used by the SAFE X3 engine.

The type of the result is Char.

Comments

The messages of the engine (table 0) are stored in a file of the lan sub-directory of the engine installation folder:

The application messages are stored by default in APLSTD database table. The name of the table used is defined by the system variable adxtms:

Associated errors

Error codeDescription
10At least one of the arguments is not numeric.
50At least one of the arguments is out of range (negative).

See also

errmes$.