Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing Memory Contents of Custom Class Properties
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Listing Memory Contents of Custom Class Properties
Miscellaneous
Thread ID:
00873101
Message ID:
00873101
Views:
77
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
Next
Reply
Map
View

Click here to load this message in the networking platform