Wouldn't it be nice if VFP supported true object persistence? One trick that I've seen work:
- Use a property array to hold most of the data in your object. It can't hold other object references, just scalar data like strings, numerics, etc.
- To store that data: Do an Acopy(object.array, aTmp)
- Store to a memo field all like aTmp
- To Restore the data to the property array, just go the other way.
aTmp can be a local array, It only exists to serve as a conduit.
This technique will move data to and from disk pretty quickly because the transfer is being handled by very little interpreted code.
However, if you want to search your table based on the values of those stored object properties, you need a more granular approach
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only