validationMsgNum

The system variable ConverseVar.validationMsgNum contains the value assigned by ConverseLib.validationFailed in a text application, so you can determine if a validation function reported an error. The value is reset to zero in each of the following cases:
  • The program initializes
  • The program issues a converse, display, or print statement
  • The program reissues a converse statement to display a text form as the result of a validation error

You can use ConverseVar.validationMsgNum in these ways:

The characteristics of ConverseVar.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 (ConverseVar.validationMsgNum > 0)
    ConverseLib.validationFailed(10);
end
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.