Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store objects?
Message
From
20/02/1998 02:23:18
Roberto Cota Rivas
Quid Estrategia Esencial de México
Monterrey, Mexico
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to store objects?
Miscellaneous
Thread ID:
00080035
Message ID:
00080035
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform