Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving the state of an object long term
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Saving the state of an object long term
Divers
Thread ID:
00594393
Message ID:
00594393
Vues:
77
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
Fil
Voir

Click here to load this message in the networking platform