>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?
Correction... now I'm seeing this even with append blank-replace cursor. Setting buffering on/off also doesn't work.
The cursor is used for a grid, which I don't even touch, the code is in a button outside of the grid (was initially in doubleclick, same problem). The code issues a getdir() on the folder contained in one field of the grid (the other one is a logical, represented with a checkbox), and if a folder returned is different from...
lcTamo=Getdir()
If lcTamo#cStavka
Replace cStavka With lcTamo ;
, lIde With .T.;
in crsRed
Endif
cStavka is the field containing the folder's path. It's the replace command which gives me the problem.
Am I overlooking something simple?