sysVar.validationMsgNum

The system variable sysVar.validationMsgNum is available in a text application and contains the value assigned by sysLib.validationFailed. The value is reset to zero in each of the following cases:

You can test the value of sysVar.validationMsgNum to determine if a validation function reported an error.

You can use sysVar.validationMsgNum in these ways:

The characteristics of sysVar.validationMsgNum are as follows:

Primitive type

INT

Is value always restored after a converse?

No

 

Example

/*Keep the first message number that was set 
  during validation routines */
if (sysVar.validationMsgNum > 0)
    sysLib.validationFailed(10);
end

Related reference
converse
display
print
sysLib.validationFailed
System words in alphabetical order