Distinct Values Combo

See Also

Category Data Query
Default Catalog Visual FoxPro Catalog\Foundation Classes\Data Query
Class _cbodistinctvalues
Base Class ComboBox
Class Library _dataquery.vcx
Parent Class _combobox
Sample ...\Samples\Vfp98\Solution\Ffc\datalook2.scx

Remarks

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

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut menu, select Add to Form. When you drop the class on a form, Visual FoxPro places a combobox on the form. You need to specify an appropriate value for the ControlSource property. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.