prints the character string 'string' in a warning
message
'on' enable warning messages.
'off' disable warning messages.
'query' get state 'on' or 'off'.
Examples
warning('on')warning('this is a warning')warning('off')warning('this is a warning')warning('query')warning('on')// Example with a localized messagewarning(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"),"myFunction",2));