Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mistake in updaterows() in MS framework?
Message
De
26/07/2000 06:30:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Mistake in updaterows() in MS framework?
Divers
Thread ID:
00396956
Message ID:
00396956
Vues:
46
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
Fil
Voir

Click here to load this message in the networking platform