Extended_Error_Field - DataDictionary

Extends the extended error logic of the Error handler

Type: Function

Return Data Type: Integer

Parameters: None

Return Value

Returns the field number associated with the error


Syntax
Function Extended_Error_Field Returns Integer

Call: Get Extended_Error_Field to IntegerVariable


Description

The Extended_Error_Field function extends the extended error logic of the Error handler.Currently in DataFlex, a global integer ghoErrorSource exists which may be used by any error handler to obtain additional error information from this source. If this value is zero, there is no additional error information. If the value contains an object id (i.e., it is non-zero), this object must understand the function Extended_Error_Message and it must return additional error text when called.

These two messages extend this such that the object pointed to by ghoErrorSource must also understand the messages Extended_Error_File and Extended_Error_Field and must return the file and field value of the last error. DataDictionary objects (DDOs) understand and support this protocol.

While these messages are public, they are advanced.

Sample

Integer iField
Get Extended_Error_Field of ghoErrorSource to iField