Skip to content

Data_set_error - DataDictionary

Declares DataDictionary object (DDO) errors

Type: Procedure

Parameters

Parameter Type Description
iField Integer Number of the field in the table
iErr Integer Eror number to display
sMess String Error text to display
sParam1 String Optional: if passed, replaces @PARAM1
sParam2 String Optional: if passed, replaces @PARAM2

Syntax

Procedure Data_set_error Integer iField Integer iErr String sMess String sParam1 String sParam2

Call Example

Send Data_set_error iField iErr sMess sParam1 sParam2

Description

The Data_set_error procedure is used to declare DataDictionary object (DDO) errors.

Normally three parameters are passed to this procedure: the field number, the error number and the error text defined for iField in the Field_Error property. The field number is passed but not used. It is available so that this information will be available to the procedure for use in any augmentation of it.

When iField is passed as -1, the originating field is unknown. If iErr is 0, the DSO will use a default error number.