xProgrammer wrote:
One possible workaround would be to use a combination of FieldPos() and FieldPut() in a method inside a method of CLASS Dbf.
Thanks for the reply Doug
Yes, that's a valid suggestion but if I'm not mistaken, fieldpos() and fieldput() will read from the physical dbf. I'm trying to optimize the operations as everything is already in an array
xProgrammer wrote:
I don't know enough about what you are really trying to do to be of more help, but personally I avoid using &.
I'm in the midst of converting an old dos module to windows. I do avoid '&' like a plague but sometimes if I don't see any alternative I'll end up using it anyway.
xProgrammer wrote:
Why can't class Dbf use an array? Or should you have a sub-table? I'm only guessing, but maybe there's a more elegant solution waiting to be found.
Oh it does. The database class that comes with fivewin stores all the field values in oDbf:aBuffers though we access it in the form of oDbf:<fieldname>. This table should've been further normalized as the customers contact details and their orders are currently kept in the same table but for backward-compatibility sake I just maintain the structure as it is.
Here's to hoping to find an elegant solution