Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter vs Data objects.
Message
From
23/10/2009 01:16:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
21/10/2009 07:22:23
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01430032
Message ID:
01430881
Views:
71
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform