validationMsgNum

The converseVar.validationMsgNum system variable contains the value assigned by converseLib.validationFailed in a Text UI program, so you can determine if a validation function reported an error. The value is reset to zero in each of the following cases:

You can use converseVar.validationMsgNum in these ways:

converseVar.validationMsgNum has the following characteristics:
Primitive type
INT
Value saved across segmented converse?
No

Example

In the following example, the program retains the first message number that was set during validation routines:

if (converseVar.validationMsgNum > 0)
    converseLib.validationFailed(10);
end

Feedback