Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter vs Data objects.
Message
De
23/10/2009 01:16:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
21/10/2009 07:22:23
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01430032
Message ID:
01430881
Vues:
72
Hi Walter
coming back to an older message

>>the tableupdate problem
>>tableupdate() returns .T. if the cursor itself is updated. This does not mean it is written to the source. You would need something like
>>
>>llx1 = TABLEUPDATE()
>>llx2 = _TALLY#0
>>
>
>I thought this only was a problem in VFP8 and resolved in VFP8SP1. No?
>
>In VFP9SP1 Tableupdate returns .F. when I try to tableupdate a change while the change was rejected by the backend.

I have played around and found my CA working as I suppose it. Then (assuming that something has changed without me catching it) I searched around and found
ConflictCheckType. If I set it to 1 it TableUpdate returns false and AERROR() returns error 1585 or the like.

If ConflictCheckType is set to TABLEUPDATE() and the UPDATE to the backend fails, the CA will be updated (GetFldState(-1) returns all 1) while
ConflictCheckType set to 1 will not update the CA

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform