Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally display ComboBox drop-arrow
Message
 
 
À
07/08/2004 08:35:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00931345
Message ID:
00931560
Vues:
27
Curt,

Marcia's suggestion could work for you. I would like to point out the reason why your idea doesn't work. The VFP grid has only one row of controls and you can see them in the Designer. When you run a form, a grid you see, is build row by row by applying current data row values and evaluating Dynamic* properties. When you change something in any control itself, it reflects in all rows because the same control is ahown in all rows.

>
>DynamicCurrentControl works well to conditionally display either a combo or a text box. Now the only problem left is that two combos on two different grid lines will pull down and correctly display their contents, but when I select an option from the combo in gridrow 2, the combo in gridrow 1 loses its value, unless their happens to be the same value in both combos. For example, say row 1 combo allows selection of A, B, and C, and row 2 combo allows selection of B, C, and D. When I select B in row 1 combo and C in row2 combo, both combos hold their values. But if I select A in row1 combo, then D in row2 combo, then row1 combo goes blank... even though I am also dynamically generating a cursor in the combo's GotFocus event using(combo.RowSource = "&cFCSelect").
>
>Is there a way to generate A, B, C, and D as the rowsource for every row's combo, but limit the selections based upon which row of the grid I am?
>
>Thank you very much for the DynamicCurrentControl suggestion. I am closer to the solution than I was before.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform