DspMsg (error : class: field: variable1: variable2: variable3: variable4: variable5: variable6: variable7: variable8: variable9)
Error = language label (30A)
Class = CSS class (any class in a CSS linked document) (optional)
Field = Variable displayed in the browser (20A) (optional)
Variable1-9 replace string(s) (optional)
Return type:
Error code
Description:
DspMsg is used to send messages to the browser.
First parm is the a language label that later will be translated into real text.
Second is used for setting the class (color, font etc.) of the specific message
The third parm is a field name of a variable used in HTML (normally one that is related to an error type DspMsg) The variable in HTML will be set to the same class as the error
Variable1-9 are pieces of text that will be inserted into the translated text at the points where a % is defined. It looks like this
Language label ‘an_error’ is translated to ‘The name %1 is number :%2’
When used like this
(custname1=’Annabelle’ and number=12)
DspMsg(‘an_error’:error:name:custname1:%char(number))
This will be displayed on the screen:
“The name Annabelle is number 12”