Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And Another CursorAdapter Question...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01011447
Message ID:
01012013
Vues:
18
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform