Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing values to a form property
Message
De
10/01/2000 21:13:16
 
 
À
10/01/2000 21:01:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00315902
Message ID:
00315909
Vues:
18
>I would like to know if there is a way to pass a forms property a value from lets say an INI file. I don;t want to customize each form for a name and then have to do it again if the company name changes?
>
>If I can do this, where would I put the code, on the form init function or form load function ?? I'm really not sure, the old DOS Text based stuff was easy to do, I fell handicapped here!
>Any help would be great,
>
>thank you
>
>Scott - email to vfp_info@cspstudios.com

Scott- this is very much an application design issue. Application wide settings are often held in a custom App object with properties specifying things such as company name, data path, etc. My framework instanciates an object like this at app startup, and in methods called from my base form class' load event, each form checks for the existence of the object and set its own properties with the values of the app object.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform