Information générale
Titre:
How to store objects?
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
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