Steve Meyerson
Programmer
I try to work with cursors as much as possible.
The AllClients cursor (downloaded from MySql) contains the main data (about 28,000 records, 60 fields)
The user starts with the Clients cursor created with
SELECT * FROM AllClients INTO CURSOR Clients READWRITE
When the user changes a record in Clients, that same change is made (by the program) in the AllClients cursor.
If the user then selects a criteria, a new Clients cursor is created. Example:
SELECT * FROM AllClients INTO CURSOR Clients WHERE State='NC'
The problem is the new Clients cursor contains the old data (before the edit).
To fix this I had to copy the downloaded AllClients cursor to a dbf instead of leaving it as a cursor.
I tried the FLUSH command (didn't work). I believe it might have something to do with buffering (CURSORSETPROP?), but I don't know what parameter(s) to use.
Is there any way I could keep AllClients a cursor instead of a dbf?
Thanks for any ideas.
Steve
The AllClients cursor (downloaded from MySql) contains the main data (about 28,000 records, 60 fields)
The user starts with the Clients cursor created with
SELECT * FROM AllClients INTO CURSOR Clients READWRITE
When the user changes a record in Clients, that same change is made (by the program) in the AllClients cursor.
If the user then selects a criteria, a new Clients cursor is created. Example:
SELECT * FROM AllClients INTO CURSOR Clients WHERE State='NC'
The problem is the new Clients cursor contains the old data (before the edit).
To fix this I had to copy the downloaded AllClients cursor to a dbf instead of leaving it as a cursor.
I tried the FLUSH command (didn't work). I believe it might have something to do with buffering (CURSORSETPROP?), but I don't know what parameter(s) to use.
Is there any way I could keep AllClients a cursor instead of a dbf?
Thanks for any ideas.
Steve