Field_CheckBox_Values - DataDictionary

Configures a table column for use with a checkbox control

Type: Property

Access: Write-Only

Data Type: String

Parameters: Integer iField String sTrue String sFalse

ParameterDescription
iFieldNumber of the column in the table
sTrueCheckbox value of column iField when checkbox is checked
sFalseCheckbox value of column iField when checkbox is not checked


Syntax

Write Access: Set Field_CheckBox_Values iField to sTrue sFalse


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