How to Use a Combo Box to Filter the Contents of a GridID: Q135265
WINDOWS | MACINTOSH
kbtool
The information in this article applies to:
SUMMARYIt is possible to use a combo box in Visual FoxPro to filter the contents of a grid by using the value property of the combo box.
MORE INFORMATIONTo filter out certain records within a table, use the SET FILTER command along with the value property of the combo box. Step-by-Step Example 1. Create a form by using the CREATE FORM <form name> command. 2. Open the Testdata.dbc database in the VFP\Samples\Data directory. Add 3. Add a combo box to the form from the controls toolbar, and in the Name
4. In the RowSource property of the combo box, type some data that you know
5. For the RowSourceType property, select Value.
6. In the Click event of the combo box, type this code:
7. Save and Run the form. When you selecting one of the items in the
Additional reference words: VFoxMac 3.00b 3.00 VFoxWin
KBCategory: kbtool
KBSubcategory: FxtoolFormdes
|
Last Reviewed: June 2, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |