>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,