General information
Title:
Saving the state of an object long term
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only