Retrieves a message found in the code of a program in the current language.
Remark: We advise you to directly use the multilingual strings in the code.
// Retrieves and displays the message 2100
// found in the code of the "WIN_Menu" window
Info(MessTranslate(WIN_Menu, 2100))
// Retrieves and displays the message 2100
// found in the code
Info(MessTranslate(2100))
Syntax
Retrieving the message corresponding to the identifier (compatibility with version 5.5) Hide the details
<Result> = MessTranslate(<Message number>)
<Result>: Character string
Sought message in the current language.
<Message number>: Integer
Number of the message to display:- Number included between 1 and 500 (inclusive): the resource is sought in the project.
- Number included between 2000 and 2499 (inclusive): the resource is sought in the current window.
- Number included between 5000 and 5499 (inclusive): the resource is sought in the current class.
Remarks
We recommend that you use the first syntax.
To find resources whose identifiers are greater than the above-mentioned limits, you must use the first syntax.
Managing the space characters
The space characters entered at the end of messages are ignored. For example: "The customer: " becomes "The customer:". To force one or more space characters at the end of a message, you must use the non-breaking space character (Alt+0160, the 0 in front of 160 is mandatory).