Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
...contains unsaved records?
Message
From
30/12/2019 06:00:54
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
30/12/2019 02:03:53
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01672460
Message ID:
01672476
Views:
50
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform