Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving the state of an object long term
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00594393
Message ID:
00594425
Views:
16
>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

GATHER NAME oObject

Can save all properties of an object, but the fields with the same names must exist in the table to save all properties of your object...
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform