Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to store a VFP object in a table?
Message
From
03/12/2007 16:53:30
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01272898
Message ID:
01272933
Views:
19
>>>>Does anyone know if it is possible to store an object (based on the empty class) into a table or cursor? If so what field type? If not, any suggestions?
>>>>
>>>>TIA
>>>>Mike
>>>
>>>What you have in this object?
>>>Why you need this?
>>
>>I have a Person object with a lot of properties (first, last, gender, etc.) that I'd like to persist so that I can add/update the corresponding record(s) in a VFP table. The person object is created and populated in one method by reading an XML file. In another method, I'd like to be able to use this object to do the actual table updates like replace field1 with oPerson.FirstName in tblEmpl.
>
>Why not use an ordinary cursor with all fields you needed in it?
>Just use XMLTOCURSOR() or XMLAdapter or something else to convert that XML to cursor.

I've already tried that, but, the XML that I've received does not load to a cursor well (if at all).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform