Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating tables using remote views !!!
Message
De
23/04/2002 06:48:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Updating tables using remote views !!!
Divers
Thread ID:
00648035
Message ID:
00648035
Vues:
46
Hi,

I am working on a multi user system which uses remote views to update tables.I am running the following code to get a unique number from a table, and then update that number with the new uniwue one. when three or more users are running this program at the same time, only one of the users is able to update the number properly, the others get stuck in the loop and get a 'update conflict' error when hitting the tableupdate() code.


Any ideas ??

updatedok=.f.

do while updatedok=.f.
=requery("remote")
replace remote.no with remote.no+1

updatedok=tableupdate()
if updatedok=.f.
=tablerevert()
unlock all
endif

loop
enddo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform