Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Setall
Message
 
To
20/09/2002 09:24:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00702675
Message ID:
00702682
Views:
9
Hi Jeffrey,

>When I run the following code, my textboxes are not enabled. but if i run thisform.mytext.enabled = .t., then the textboxes are enabled. Anything wrong with this code?:
>thisform.setall('ENABLED',.T.,'Textbox')

assuming you have your own Textbox subclass, you would have to write:
thisform.setall('ENABLED', .T., 'myTextboxClassName')
Where myTextboxClassName is the class name of your textbox class that is derived from the VFP base textbox. If you have textboxes derived from different classes, you can either do one "setall" for each class or loop through all controls in the form's Controls collection and all it's containers or use AMEMBERS() to do the same. But this is a little more painfull.

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform