Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Mistake in updaterows() in MS framework?
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement