Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiuser coding - how to ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00846282
Message ID:
00846309
Vues:
21
As Jim mentioned, it's not easily "describable in a place like this" (how much time do you have), however . . .

If you use table buffering on the tables involved in the edit, and if you set the referential integrity up properly, and if you surround the calls to TABLEUPDATE() with BEGIN TRANSACTION and END TRANSACTION, then you'll find that you're not explicitly coding the record locking - VFP handles that for you. I'd suggest looking at the Tasmanian Traders example that comes with VFP. There is actually a lot to be gleaned from that app if you'll take the time to get in and pick it apart.

Russell


>hi all,
>
>i am trying to develop an application in vfp6 to run in a multi-user environment.
>
>do i need to code for file locking / record locking when modifying record, etc. or is it taken care of automatically. if i do have to code can someone give me some sample code for modifying data ?
>
>are there any articles giving guidance as to how to proceed to code for a multi-user environment ?
>
>sincere thanks.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform