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
Titre:
Listing Memory Contents of Custom Class Properties
Divers
Thread ID:
00873101
Message ID:
00873101
Vues:
78
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"

The problem is that if I do a list memory to a text file from within the app all that is displayed for ogv is 'public', 'O', and 'GlobalVariables'. The contents of ogv.cCompanyName are * not * displayed.
I realize that if I start the debugger I can expand the ogv object.
However, what I am trying to accomplish for debugging purposes is a 'dump' of memory as part of an error handler.

TIA for any suggestions.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform