Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing Memory Contents of Custom Class Properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00873101
Message ID:
00873265
Vues:
20
David,
Tks for the tip.
>Allan,
>
>You can easily create a Dump() or Serialize() method to the class that is used for these sorts of "parameter" objects. This will allow you to still keep this nice encapsulation, and let the object be smart enough to know how to output itself into your error log.
>
>>Currently one of our applications uses public variables assigned in our main.prg to contain values such as company name, user name, etc.
>>
>>We are considering retrofitting this application to use a custom class with properties containing the same information.
>>The code is something like:
>>public ogv
>>ogv=createobject("GlobalVariables")
>>ogv.cCompanyName = "Test Company"
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform