Bt_IgnoreFieldReadError() Function
<< Click to Display Table of Contents >>
Bt_IgnoreFieldReadError() Function
|
|
Purpose
Show error messages when reading data
Prototype
FUNCTION Bt_IgnoreFieldReadError ( lSet ) AS LOGIC
Return
LOGIC The current setting of Bt_IgnoreFieldReadError()
Description
This flags determines the way Read-Errors are handled. When the flag is TRUE no error messages will be generated, but a default value will be returned.
Errors ignored are:
•Wrong Field sizes
•Unsupported or non-existing Field types
When the flag is FALSE (which is default) Bt_ShowTypeError() determines how the error message is displayed. When Bt_ShowTypeError() = TRUE, a messagebox is shown, when it is FALSE, the VO Error handler will be called.
The default behaviour is that Read errors are NOT ignored
Example(s)
// In this example, errors encountered when reading fields
// will not display and the values will be zero filled, fields
// written to the database will display an error when a
// value cannot be converted properly.
// Once an error is discovered, the VO Error handler will be called.
Bt_FieldIgnoreReadError(TRUE)
Bt_FieldIgnoreWriteError(FALSE)
Bt_ShowTypeError(FALSE)
See Also
Bt_IgnoreFieldWriteError(), Bt_ShowTypeError()