Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot update cursor - error message (VFP 5.0a)
Message
De
26/01/1999 17:25:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00180288
Message ID:
00180517
Vues:
21
>This works, but.....why did I still receive "Cannot update cursor" when I removed the .DBC from my project and opened the .DBC from my main .prg just before launching a form?
Tim,
There are numerous causes for "Cannot update cursor" error. Anyone might be. Few of them that comes to mind :
-A dbf is readonly (ie:included in project and needs update).
-A cursor is attempted to be updated but not an updatable one (ie: select .. into cursor mycursor then insert into mycursor where mycursor is not a true cursor and editable).
-Like the previous one - a combo, grid etc has row/recordsourcetype SQL and you try to select into same cursor :
Combo.rowsource = "select .. into cursor anyCursor"
...
select ... into cursor anyCursor
-A dbf that you try to update is in exclusive use in another data session.
Opening a dbc doesn't sound to be the cause unless you try to alter structure or property of some contained table, view that needs exclusive acces to DBC etc.
In rare cases even it could be an attempt to modify scx or vcx on the fly.
Whatever the case you should first seek for a command trying to update a readonly cursor.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform