Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Networking
Message
De
31/10/2005 07:21:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
31/10/2005 04:11:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01063445
Message ID:
01063472
Vues:
13
>Hi
>
>It is regarding the networking, if I use direct cabling to attached two computers and shared databases and tables for this 'Set exclusive off' and record locking (If rlock() and unlock) is sufficient or I have to keep some other parameters for networking.
>
>Please guide me ...
>
>Saif

If you use buffering, you rarely need to explicitly lock records. The usual procedure would be:

Open the table with buffering: SET MULTILOCKS ON and CursorSetProp("Buffering") (or through properties in the form's DataEnvironment).

Save a record with TableUpdate(). Be sure to check the return value. Visual FoxPro checks for conflicts, and doesn't do the TableUpdate() if another user made changes in the meantime (assuming the standard parameters for TableUpdate()).

If you want to cancel changes to a record, use TableRevert().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform