Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programming in shared access
Message
From
26/08/2003 03:55:30
 
 
To
25/08/2003 21:12:35
Mike Sontillano
Travellers Life Assurance of the Philipp
Naga, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823260
Message ID:
00823318
Views:
17
Hi,

>>
my users want to access a table simultanesouly using
peer to peer network.First, I lock the table before appending
new record and unlock it, so that the other
can append to the same table. Lock again the table to save the data.
I am correct with this code?: Please help and explain.
>>

If you are using buffering then file (or record locking) isn't neccessary.
Just use 'APPE BLANK IN mytable' to add a record. To save:
IF TABLEUPDATE(.T.,.T.,"mytable")
  * OK
ELSE
  =messagebox("Couldn't save record")  && or whatever
ENDIF
Bit oversimplified (read up on the TABLEUPDATE() options) but should be a start...

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform