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")
ELSE
=messagebox("Couldn't save record")
ENDIF
Bit oversimplified (read up on the TABLEUPDATE() options) but should be a start...
Regards,
Viv