Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programming in shared access
Message
De
26/08/2003 03:55:30
 
 
À
25/08/2003 21:12:35
Mike Sontillano
Travellers Life Assurance of the Philipp
Naga, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00823260
Message ID:
00823318
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform