Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement