IsError property: File class
Description
This property is a file layout property. It returns a Boolean value indicating whether a field error condition was generated by the last file layout method executed. If an error condition was generated, IsError returns True; if not, IsError returns False. The default value is False.
This property is read-only.
Example
The following example shows where IsError would be used:
&MYFILE.Open(&SOMENAME, "R");
&MYFILE.SetFileLayout(FILELAYOUT.SOMELAYOUT);
&MYROWSET = &MYFILE.ReadRowset();
If &MYFILE.IsError Then
/* Examine the EditError property of each field in the rowset
to find the one with the error, and respond accordingly */
End-If;
&MYFILE.Close();
Related Topics