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.