Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving data from instantiated object array
Message
From
04/12/1997 19:09:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00063481
Message ID:
00063905
Views:
53
>>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).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform