Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to store a VFP object in a table?
Message
De
03/12/2007 17:03:07
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
03/12/2007 17:00:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01272898
Message ID:
01272940
Vues:
18
>>>>>>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).
>
>Could you send it to me to play with?
>Of course if it is not contain any sensitive data.

Gotta run. I'll see about getting you a sample tomorrow.

Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform