4. System Classes : BitmapObject 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.
You can explicitly set a FileHandle or DBHandle for a BitmapObject in the following ways:
In 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 BitmapObject to do database or file access since all the methods return an error code.
OpenROAD resets this attribute each time you explicitly set the FileHandle or DBHandle attribute. If the operation was successful, ErrorStatus is set to ER_OK. If the operation failed, ErrorStatus is set to a non-zero value. Descriptions of system constant values and their numeric equivalents are listed in Error Codes (see Error Codes).
For a discussion of using this attribute, see the Programming Guide.