>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)