InitializeTableComboBox event

The InitializeTableComboBox event is fired when a column of a table is defined as a combo box that is filled by script. In this event all possible combinations for the value / description pairs must be created as separated string of all items so that the for an existing value needed description is available for displaying. This event can be omitted for scripted comboboxes not using descriptions.

ValidationForm_InitializeTableComboBox( _
    ByVal FieldName As String, _
    ByVal ColumnIndex As Long, _
    ByRef ComboboxItems As String _
    )
FieldName

Name of the table field where a column is defined as a combo box.

ColumnIndex

Zero-based index of the column in the table that is defined as a combo box that is supporting descriptions and that is filled by script. Using invisible columns this can be different from the displayed column index.

ComboboxItems

String containing a separated list of the items displayed in the combo box. By default a semicolon is used as separator for values, a pipe as separator for descriptions, different separators can be configured in the validation form layout designer.