Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store objects?
Message
De
20/02/1998 02:23:18
Roberto Cota Rivas
Quid Estrategia Esencial de México
Monterrey, Mexique
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to store objects?
Divers
Thread ID:
00080035
Message ID:
00080035
Vues:
65
Hello:

I was wondering if anyone knew how to store user defined objects in a table. The objects are defined in Visual Fox Pro as custom classes, and I only need to store the object's properties (which can also be arrays of objects!). Is there any way of doing this in VFP? I use VFP 5.0...
I looked around before posting this, and I was wondering if the General field works, since I think it's only for OLE containers...

BTW, I would need a really FAST acces to the data, and I don't think a General field would do it. So right know I'm including a method in each class that outputs its properties as a string, then I store it in a table, then when I read the table, I have another method which parses the string in order to set the properties of the object that I'm "reading". I think this is a clumsy way of doing it, so I was wondering, do I have a choice? ;)

Thank you!
Roberto Cota Rivas
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform