FormComboBoxControl.dataSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
dataSource(Object) | |
dataSource() |
Gets or sets a data source that should be used by the control or the form. |
dataSource(Object)
public:
virtual int dataSource(System::Object ^ _value);
public virtual int dataSource (object _value);
abstract member dataSource : obj -> int
override this.dataSource : obj -> int
Public Overridable Function dataSource (_value As Object) As Integer
Parameters
- _value
- Object
The value to assign as the data source for the combo box control; optional.
Returns
Applies to
dataSource()
Gets or sets a data source that should be used by the control or the form.
public:
virtual int dataSource();
public virtual int dataSource ();
abstract member dataSource : unit -> int
override this.dataSource : unit -> int
Public Overridable Function dataSource () As Integer
Returns
The identifier of the data source that should be used.
Remarks
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));