Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling specific objects in a Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00367650
Message ID:
00367665
Vues:
19
>Hello, i'm a beginner programmer in vfp and is doing my GCE A-Level project now. Hope that you can help me. I have editbox-es displaying memo fields (they are initially disabled) and combo box-es displaying some values. When the user select a certain value inside a combo box in a certain row (eg. row 2), I want to enable the corresponding edit box on row 2 so that the user can key in some value. Is there any way to accomplish this? Help will be greatly appreciated, thanks in advance.


Try this in grid.column1.Combo.Valid() (assuming that combobox is in Column1 and editbox is in Column2)

this.parent.parent.Column2.Edit1.Enabled = IIF(this.Value = myCertainValue, .t. , .f.)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform