Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set a property of all forms in a project?
Message
 
 
À
09/05/2007 11:02:37
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01223778
Message ID:
01223781
Vues:
24
>Hello everyone:
>
> Could you give me some advice on how to set a property of all forms in a project? thank you!

Use the form's class. Convert all your forms to use this class.

If you already have a property and just want to set it, then one of the ways would be to navigate through _screen forms collection. e.g.
for each loForm in _screen.Forms
   if pemstatus(loForm,'myProperty',5)
       loForm.MyProperty = MyValue
   endif
next
This is in run-time.

In design time you need to use _VFP.ActiveProject for this. I can dig some code, if needed.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform