Bt_ShowTypeError() Function

 

<< Click to Display Table of Contents >>

Navigation:  System Settings >

 

Bt_ShowTypeError() Function

 

Previous pageReturn to chapter overviewNext page

 

Purpose

 

 

Show error messages for missing/wrong Btrieve datatypes

 

 

 

Prototype

 

 

FUNCTION Bt_ShowTypeError ( lSet )  AS LOGIC

 

 

 

Return

 

 

LOGIC                The current setting of Bt_ShowTypeError()

 

 

 

Description

 

 

With this setting you can influence how VO2Btrieve will process missing/wrong datatypes. When ShowTypeError = TRUE messagebboxes will popup, when it is FALSE the VO Error handler will be called.

Note

The behaviour of ShowTypeError is also influenced by the IgnoreReadError and IgnoreWriteError flags. When those flags are set to TRUE no error messages will be generated at all, and a default value is returned.

The default behaviour is that type errors result in a VO Error

 

 

 

Example(s)

 

 

// Set Error options

// 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_IgnoreFieldReadError(), Bt_IgnoreFieldWriteError()