Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable all controls with TAG property = 'X'
Message
 
To
16/05/2002 14:18:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00657662
Message ID:
00657716
Views:
26
Hi,

Try this in a method:

For Each loControl in ThisForm.Controls
IF loControl.TAG = "X"
loControl.Enabled = .F.
ENDIF
ENDFOR


OR


ThisForm.SetAll('Enabled', .F.)


HTH,
Arriyel

>I'd like to disable all controls in a form if its tag property = 'X'. Is there an easy way to do this? Thank you all!
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform