Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating tables using remote views !!!
Message
From
23/04/2002 06:48:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Updating tables using remote views !!!
Miscellaneous
Thread ID:
00648035
Message ID:
00648035
Views:
45
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
Next
Reply
Map
View

Click here to load this message in the networking platform