Language Reference Guide : 4. System Classes : StringObject Class : ErrorStatus Attribute
 
Share this page                  
ErrorStatus Attribute
Data Type: integer
4GL Access: R
The ErrorStatus attribute contains the error number if an error occurs when you explicitly set the FileHandle or DBHandle attribute.
There are three ways that you can explicitly set a FileHandle or DBHandle for a StringObject:
By an assignment statement
In the target list of a statement, such as a select statement
By passing the attribute by reference to a procedure
The ErrorStatus attribute is not affected by errors that occur when you use any of the methods associated with the string object to set a FileHandle or DBHandle attribute.
OpenROAD resets this attribute each time you explicitly set the FileHandle or DBHandle attribute. If the operation was successful, the ErrorStatus attribute is set to zero. If the operation failed, this attribute is set to a non-zero value.