Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically changing properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00167271
Message ID:
00167279
Vues:
17
>In VFP6 I can select all the controls on the page and set the visible property to false using the properties sheet. Is there a simple way to do this programatically, without having to set each control explicitly?
>TIA
>Marcus.

Aside from the SETALL() method that will require a call for each distinct object class (editbox, textbox, combobox, etc) you can use the controls array and cycle through that...
For each loCurObj in Thisform.controls
   if pemstatus( loCurObj, "Visible", 5 )
      loCurObj.Visible = .F.
   endif
EndFor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform