Skip to content

Field_CheckBox_Values - DataDictionary

Configures a table column for use with a checkbox control

Type: Property
Access: Write-Only
Data Type: String
Parameters: None

Parameters

Parameter Type Description
iField Integer Number of the column in the table
sTrue String Checkbox value of column iField when checkbox is checked

Syntax

Set Field_CheckBox_Values iField to sTrue sFalse
Access Type Syntax
Write Access: Set Field_CheckBox_Values to StringVariable/Value

Description

Field_Checkbox_Values configures a table column for use with a checkbox control. A checkbox column can only store one of two values; a True value and a False value.

If the column is represented by a checkbox control (e.g. dbCheckBox), then the control will be checked when the column value evaluates to True, and is unchecked when the column value evaluates to False.

If the column is represented by a form control (e.g. dbForm) then data entry will be restricted to either the True value or the False value.

When a validation error occurs, the error number and text specified for the column in the Field_Error property are used to report an error. If no text was defined, a standard check-error text will be reported.

Sample

Set Field_Checkbox_Values Field Customer.Status to "A" "I"

See Also

Defining Data Dictionary Field Attributes