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
Miscellaneous
Thread ID:
00873101
Message ID:
00873265
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform