Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor can Not be updated because it contains unsaved re
Message
De
24/08/2005 11:55:24
 
 
À
24/08/2005 11:35:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01043169
Message ID:
01043428
Vues:
9
>Terry
>thanks for your response. I am scattering and gathering to the same table (.dbf, not a cursor) because I am doing an "addLike". I changed the append blank to:
>
>append blank in poitems && alias() = poitems
>
>
>I used the alias name rather than alias(), but the code still fails on the append blank
>Vince

Wait a minute. You're doing:
SCATTER MEMVAR memo
APPEND BLANK in poitems
TABLEUPDATE(1,.t.,alias())
GATHER MEMVAR memo

Shouldn't it be:

SCATTER MEMVAR memo
Select poitems && just using belts and suspenders here - maybe it'll help
APPEND BLANK in poitems
GATHER MEMVAR memo
TABLEUPDATE(.t.) && no need alias as in correct table

You're committing the append before saving data in the new rec. Not saying this is why you get the error though.

Mi's well give it a go?

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform