Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It's feasible under multi user environment?
Message
De
25/04/2002 09:31:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/04/2002 09:10:38
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00649067
Message ID:
00649109
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Hilmar:
>I know this function may procudte many conflict,is there a method to avoid it?

I am sending this message a second time, since I forgot to include a copy to you:

On second thought - I assume you are not talking about a specific function, but about sharing DBFs in general.

This can basically cause two kinds of conflicts.

1) If one user uses a table exclusively, another user can't access it. I already gave the solution: open the table SHARED.

2) It may be possible that two users try to edit the same record. This can be solved through record locking (see rlock()), but the preferred method (in Visual FoxPro), is to use, at least most of the time, optimistic buffering (see: CursorSetProp("Buffering"), TableUpdate(), TableRevert()). With optimistic buffering, if another user saved changes after I started editing, TableUpdate() (with the default options) will fail, and I will have to start from the beginning (for this particular record).

HTH, Hilmar.
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform