Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mistake in updaterows() in MS framework?
Message
From
26/07/2000 06:30:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mistake in updaterows() in MS framework?
Miscellaneous
Thread ID:
00396956
Message ID:
00396956
Views:
47
Hello,

I recently had a problem with the MS framework were records were kept
locked.
After studiing the code discoverd some stranges in the code
updaterows() in the Microsoft framework.
It loops trough all the tables when it finds a modified record it
tries to lock the record then update it and it loops out of the loop
the the next table without unlocking the records?
The unlock is there but it is never reached! Except when the update
goes wrong but not if the update goes right.

The lines I mean are line 79 - 85

It think the code should look like:
IF m.lSuccess &&was able to lock all records
m.lSuccess = TableUpdate(.T.,m.lOverwrite)
IF m.lSuccess &&was able to update all records
UNLOCK ALL
LOOP
ENDIF
UNLOCK ALL
ENDIF

Greetings,

Albert
Reply
Map
View

Click here to load this message in the networking platform