Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
...contains unsaved records?
Message
De
30/12/2019 06:00:54
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/12/2019 02:03:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01672460
Message ID:
01672476
Vues:
48
>>The error I'm getting is "Cursor cannot be modified because it contains an unsaved record". The cursor is made by create cursor (and in later version, select * ... readwrite from that cursor, same result). The record was not changed, the cursor is just populated from an .ini file - in one version via append from array, in other via insert. There's no buffering, nothing, no underlying table, no database engine connected.
>>
>>Now if I change the method of populating the cursor from "append from" or "insert into" to "append blank, replace...", it stops complaining. WTF? Anyone seen this before?
>
>Hi,
>This is error 2072 and according to the Helpfile:
>
>This error typically occurs when a record in a cursor is modified in a grid or Browse window and is not saved before moving to another record.
>
>Any code that modifies the cursor should ensure that all modifications are saved before moving the record pointer.
>
>Please check your code of the grid

I wonder how does "save" apply to this situation in the first place. There's no save, this is a readwrite cursor without an underlying table, there's no buffering. I tried with tableupdate() after every change (i.e. after inserting the record, after changing the record), still the same. What does "unsaved" mean on a totally private exclusive cursor?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform