Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing several objects at once
Message
From
06/06/2002 13:02:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/06/2002 12:24:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00665545
Message ID:
00665569
Views:
11
This message has been marked as the solution to the initial question of the thread.
>I am trying to change the visible property of five textboxes. What is the most economical way to change the same property of mutliple objects?

store .f. to x.visible, y.visible...

or if they have tag_assign method. Thisform.SetAll('Tag',cMessage)

Honestly no other 'economic' way I can think of. If only those 5 textboxes are subclass of a specific class :

thisform.Setall('Visible',.f.,'SpecificTxtBox')

Or in same container base class :

thisform.cnt.SetAll('Visible',.f.,'TextBox')

Or something like objcollector class of FoxyClasses.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform