Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unlock trap
Message
 
À
30/10/1998 04:55:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00152187
Message ID:
00152726
Vues:
17
>Marc,
> You can't rlock() buffered data.

Well it seems I can. :). Not to my full satisfaction, but it does work. You can lock a record in a buffered situation. What you cannot do to my surprise is to unlock only one out of a serie of records.

BTW, I thought I'd use the same buffering for all my tables at all times. Are you guys setting the buffering "a la carte?".

>If you set buffering to 2 - pessimistic record buffering or 4 - pessimistic table buffering the records will be buffered and they will be locked in the table for you so nobody else can modify them while you are editing. If you set buffering to 4 the header of the table will be locked which means nobody else can edit any records in the table while its locked. The whole point of buffering is so you don't have to manually use rlock() VFP does it for you.

Well I do not mind rlocking so much. I use buffering because I need the transaction management at save time, so I can roll back. Does a lot of good to my RI :).

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform