Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to public variables
Message
 
À
11/06/2002 16:07:35
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667071
Message ID:
00667722
Vues:
16
Although I too like to use a global application object, another alternative you may want to consider is using the _screen object as your application object. Instead of having to instantiate a separate global object for storing your application properties, you can use the _screen.addproperty() method to store them to the _screen object, then just use _screen.propname to refer to them later. The disadvantage to this is that you can't add access or assign methods to these properties, and you can't have any custom methods.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform