Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
...contains unsaved records?
Message
De
27/12/2019 10:22:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/12/2019 09:06:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
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:
01672461
Vues:
77
>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?

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform