Share via


FormComboBoxControl.dataSource Method

Gets or sets a data source that should be used by the control or the form.

Syntax

public int dataSource([anytype value])

Run On

Client

Parameters

  • value
    Type: anytype
    The value to assign as the data source for the combo box control; optional.

Return Value

Type: int
The identifier of the data source that should be used.

Examples

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

int i; 
 
// The combo variable was previously assigned  
// as a FormComboBoxControl variable. 
 
// Retrieve the data source. 
i = combo.dataSource(); 
 
// Set the data source. 
combo.dataSource(tablenum(CustTable));

See Also

Reference

FormComboBoxControl Class