ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: multi user form   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

mar. 10 juillet 2007, 23h38
OlivierH
atoutfox.public.association

Re: multi user form

Hi,

You must to use Rlock() or Flock , it's the same Function

If a user1 modify a record, you lock the record with Rlock
and after all the user1 has his need, you unlock the record.


And for the user 2 you test , with Rlock

Set reprocess to 5
If rlock("AliasDbf")
* I can modify the record
Else
Messagebox("You must to wait , cause an user modify the record
actually !")
EndIf

Olivier




Administrateur a écrit :
> hi,
>
> Can some one help me to create a form that makes a file (.DBF) in a share
> mode between 2 users in a small network (3PC).
>
> when i'm trying to delete a reccord and the same reccord is in use by an
> other User2 the reccord was deleted without ask me or tell me that is in use
> by an other !!!
>
> thanks
>
> 100 Freinds is best than 100 Dollars
>
>
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000001670
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3