@msg() Function |
![]() ![]() ![]() |
@msg() function is used to create a message ADOM. Syntax: @msg(message-id, [message-parameters], [message-details], [unit-name])
message-id The identity of a resource entity existing in the <unit-name>.res file or the text of the message itself. If no entry is found in the resource file with the given identity the value of this parameter is used as the message text. message-parameters One or more message parameters. The values of message parameters are used to replace the symbols such as %0, %1 existing in the resource text. message-details More details for the message. unit-name The name of the resource file. See MoreMotion Resource Files Example: @msg('TABLE_NOT_FOUND',[tableName,dbName], 'Very serious error! Please contact your system administrator.', 'myunit') @set(_maxcc,12) @// To force displaying the error page
myunit.res file
The XML representation of the created message ADOM
Note: The elements under the library branch "mor > Error" are compliant to the XML structure of the message ADOM.
See @res() |