MessageNumber property: Field class
Description
This property returns the error message number (as a number) if an error for this field is found after executing ExecuteEdits method. You can use this property in conjunction with the EditError property (which can be used to determine whether there are any errors) and the MessageSetNumber property (which contains the error message set number if an error is found.)
This property is read-only.
Example
For &I = 1 to &RECORD.FieldCount
&MYFIELD = &RECORD.GetField(&I);
If &MYFIELD.EditError Then
&MSGNUM = &MYFIELD.MessageNumber;
&MSGSET = &MYFIELD.MessageSetNumber;
/* Do processing */
End-If;
End-For;