Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically changing properties
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00167271
Message ID:
00167279
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform