Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking File When the FIle is in Use as A Share
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Locking File When the FIle is in Use as A Share
Divers
Thread ID:
00669179
Message ID:
00669179
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform