Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
And Another CursorAdapter Question...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01011447
Message ID:
01012013
Views:
17
Kevin,

>>I dont understand. The changes are in my local cursor.

When you're running ODBC to an external data source, the "local" cursor is actually a view that's connected to the backend db. For the most part it does look and act like a local cursor, but there are some actions that can't be performed on this cursor. To make a view a "real" local cursor you will have to alter the cursor with a SQL query:

SELECT *, .F. AS ForceLocal ;
FROM [view] ;
INTO CURSOR [local_cursor_name] READWRITE

ALTER TABLE [local_cursor_name] ;
DROP COLUMN ForceLocal

DROP TABLE [view]

At this point you now have a truly local cursor. Unfortunately it took three writes to make it happen and you will have to move the data back to the backend DB to apply any updates.

I usually reserve this for cursors where I will be making other changes to the local cursor on the workstation.

Regards,
Thom C.
Previous
Reply
Map
View

Click here to load this message in the networking platform