Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>>>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).
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement