Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private or not private datasession?
Message
 
To
05/06/1998 11:38:12
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00105173
Message ID:
00105852
Views:
23
>I am planning to create a multi-user program, should i set the datasession to private or not?
>
>Whats the different? I have read the on-line help, but I am not sure about what is it talking. So, please do not refer me to the help.

Tan,

In my humble opinion, the decision of whether to use private datasessions or not is not related to the issue of multi user access. It has to do with keeping environments clean and making sure that one form does not "step" on another.

A private data session means essentially this. In VFP, I have some 32000 workareas to play around with. This 32000 figure is per datasession. Basically, this means that I can have a form with 32000 clean work areas despite what other forms are open by the user.

So, take the following example. I have a form that I use to enter customer information. I have another form that I use to enter invoice information. Both forms use the customer table. By using private data sessions, I can open the customer table in both forms and not worry about changes to the record pointer in customer messing up the other form.

As a general rule, I prefer to use private data sessions. Yes, it does mean that I have to open the table for the form each time the form is launched. This is a negative. But, on the other hand, I think the benefit of the private data session greatly outweighs any negatives.

HTH,
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform