Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I disable fields on a Pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663496
Message ID:
00663497
Vues:
22
If a user has read-only rights, I want to disable fields on a form. I am using the following code to do this:
>
>FOR i = 1 TO THISFORM.CONTROLCOUNT
> IF INLIST(THISFORM.CONTROLS(i).BASECLASS, 'Checkbox','Textbox', 'Combobox')
> THISFORM.CONTROLS(i).ENABLED = .F.
> ENDIF
>ENDFOR
>
>This works great...except for any fields on a Pageframe on the form. Any ideas how to disable those fields without specifying each field individually?
>
>Thanks,
Doug


Hi Doug,

Have you looked into using SetAll()?


- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform