Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking File When the FIle is in Use as A Share
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Locking File When the FIle is in Use as A Share
Miscellaneous
Thread ID:
00669179
Message ID:
00669179
Views:
54
Hi guys...

i got problem with multiuser programming...
Just wanna know how to use a table in multiuser environment properly....
Cause still i don't understand about FLOCK() Lock dan RLOCK(), UNLOCK(). WHen n where to put it...

I have try one....
My Scenario is that User1 has used the Table Tcustomer as a shared..... then User2 also used it, but intend Exclusive use to update (adding or maybe deleting some record) the table. got confuse with the coding...

Use tcustomer shared
If Flock('tcustomer')
**Bla... Bla
else
**Bla... Bla
endif


From there...
i got error access denied...

HOw suppose that i do with it...
please help me out..

thanks...

regards,
tut_arie
The More We give, the more we earn
Next
Reply
Map
View

Click here to load this message in the networking platform