Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving the state of an object long term
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Saving the state of an object long term
Miscellaneous
Thread ID:
00594393
Message ID:
00594393
Views:
74
I have a developer who was using saveasclass to create an actual file holding the state of his object for future use. He would actually copytostring the resulting file, into a memofield, and pull it back at a later date when the user wanted it.
We just found out that saveasclass doesn't save any properties added with object.addproperty when you are in a .exe runtime. In the development environment, this worked fine, but not in the .exe.

Design flaws aside, we are far to close to release to make large changes here. Does anyone know of an alternate way to do this? Save the object to a field in the database? Alternately, I am working on a base class with some methods to find all the properties and copy them, thier values, and datatypes, to an array for storage in the memofield, and later retrieval and repopulation/creation. I can't find a collection of properties either though, so am doing this by hand.

Any help would be great!

Chris Carey
Next
Reply
Map
View

Click here to load this message in the networking platform