Share via


FormComboBoxControl.dataField Method

Sets or returns the data field for the combo box control.

Syntax

public FieldId dataField([FieldId value])

Run On

Client

Parameters

Return Value

Type: FieldId Extended Data Type
The value of the data field ID for the combo box control.

Examples

The following example shows how to set and return the data field for the combo box control.

fieldID i; 
 
// The combo variable is a previously assigned  
// FormComboBoxControl value. 
 
// Retrieve the data Field. 
i = combo.dataField(); 
 
// Set the data field. 
combo.dataField(fieldnum(CustTable, IdentificationNumber));

See Also

FormComboBoxControl Class

FormComboBoxControl.dataSource Method