ErrorPending property: Session class
Description
This property indicates whether there are any error messages pending for the API that is currently running. After this property has been set, it returns True until the PSMessages collection is cleared (or deleted.)
This property is read-only.
Example
If &MYSESSION.ErrorPending Then
&COUNT = &MYSESSION.PSMessages.Count;
For &I = 1 To &COUNT
&ERROR = &MYSESSION.PSMessages.Item(&I);
&TEXT = &ERROR.Text;
WinMessage("Error text " | &TEXT);
End-For;
&MYSESSION.PSMessages.DeleteAll();