>>I have an array of a class object that has a lot of
>>properties. Is there any way that those can be saved
>>to disk? I can do it in VC++. In VFP I am resetting the
>>values from tables each time I run the program.
>>
>>Gary
>
>Gary,
>VFP does not have any native way to write a VFP object to a file. Dumping
>the properties to and from a table is probably your only answer.
>
>You could write Load and Save methods in you base objects and dump the
>properties to a memo field.
>
>Some way to dump and load a VFP object into/out of a general field would
>work also. Maybe someone has an idea?
Save all like myobject to memo the_memo
The only trouble is that it gets saved with its name altogether, so we can't
use this for copying an object; when we Restore From Memo the_memo Additive,
we'll get the same object name, and it will be private to the procedure where
it's restored.
I haven't solved the copying yet - object2=object1 still creates just another
reference to the same object, and doesn't copy it - FOXWISH: OCopy(obj1,
obj2).