Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: FoxGuy Ruiz
  Where is FoxGuy Ruiz?
 hawthorne
 California - United States
 FoxGuy Ruiz
 Tags
Subject: RE: Using a form by several users
Thread ID: 143609 Message ID: 143637 # Views: 2 # Ratings: 1
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Thursday, August 30, 2007 1:29:47 PM         
   


> Hello if i create a form and call this form from my application, will this form be accessible by more than one user, or will i get an error "access denied" if i try to open this already opened form.
> If an error ocurred, how can i make a form to be accessible by more than one user? What code should i use on the form to let others open this form without an error saying that the form is already in use.
>
> thanks in advace.

Provided your forms use:
-private datasession
-optimistic buffering
-exclusive off
-multilocks on

You can open the same form not only from multiple users but multiple times from a single session as well (multiple times * multiple users). It seems too easy but it is indeed too easy with VFP:)

PS: It is easy for "last write wins" scenario. You still need to skim chapters about programming for shared access, handling conflicts etc. But if you're not bothered and "last write wins" scenario is good for you then it's all you need. VFP handles the rest for you.

Cetin Basoz

ENTIRE THREAD

Using a form by several users Posted by FoxGuy Degante @ 8/30/2007 9:46:17 AM
RE: Using a form by several users Posted by Eric den Doop @ 8/30/2007 10:17:35 AM
RE: Using a form by several users Posted by tushar @ 8/30/2007 10:22:18 AM
RE: Using a form by several users Posted by Ken Murphy @ 8/30/2007 12:56:18 PM
RE: Using a form by several users Posted by tushar @ 8/30/2007 2:06:26 PM
RE: Using a form by several users Posted by Cetin Basoz @ 8/30/2007 1:29:47 PM