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:11:25
 
 
À
24/08/2005 10:46:55
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:
01043385
Vues:
11
>Borislav
>Thank you for responding. The problem still persists. The error: "Cursor canNot be updated because it contains an unsaved record" occurs just after a scatter and fails on the gather. The alias() = poitems. I overkilled the update and append blank with the following code:
>
> WAIT WINDOW 'clsFrmAddOnly.acti: in gAddLike: ALIAS() = ' + ALIAS()
>* TABLEUPDATE(1,.t.,'poItems')
> TABLEUPDATE(1,.t.,alias())
> SCATTER MEMVAR memo
> APPEND BLANK && NOW FAILS HERE
> TABLEUPDATE(1,.t.,alias())
> GATHER MEMVAR memo
>
>
>The failure now occurs on the append blank.
>Frustrated in Bath township
>Vince

Vince

Just an idea but you've probably got htis covered:

Are you sure Alias() is returnuing the correct alias, i.e. that of the currently selected table. IOW you need to be USEing the object table. Now I don't know what table you're scattering from. Indeed, it looks like you're trying to append to the same table - maybe that's what you want.

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