Share via


Lookup Combobox Foundation Class

This class performs a lookup of values in a field to populate a combobox.

Category

Data Query

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Data Query

Class

_cbolookup

Base Class

ComboBox

Class Library

_dataquery.vcx

Parent Class

_combobox

Sample

...\Samples\Solution\Ffc\datalook2.scx

Remarks

To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Form. When you add the class to a form, Visual FoxPro opens a builder so you can specify the appropriate Lookup_table, Order_column, Display_column, and Return_column values. When you drop the class on a project, you can choose between adding the class or creating a subclass.

Properties, Events, Methods

Description

Display_column property

Specifies the column value from the Lookup_table to display in the drop-down list.

Default: ""

Lookup_table property

Specifies the table in which to find the column containing the values to display in the drop down list.

Default: ""

Return_column property

Specifies the column value (0, 1 or 2) to return to the Value property of the combo box.

Default: ""

Order_column property

Specifies the column to order the records displayed in the drop down list (optional).

Default: ""

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples