Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing several objects at once
Message
De
06/06/2002 13:02:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/06/2002 12:24:06
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00665545
Message ID:
00665569
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform