Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with USE AGAIN & Multiple DataSessions
Message
From
24/06/2008 10:11:19
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01326245
Message ID:
01326346
Views:
15
>2. If I run FORM2 first and do something which queries VIEW1, and then attempt to run FORM1, the USE AGAIN Line in the FORM1's LOAD Method now asks for a View Parameter & I get an Error Message saying that 'ALIAS Source is Already In Use'...Looks like USE AGAIN with Views doesn't always respect Data Session Boundaries...


The issue isn't USE AGAIN or data session boundaries. It's what using the default data session means. Setting a form for the default data session means that it opens in whatever data session is in use when the form is called. That means that if you have a form open with a private data session and that form opens another form set to the default data session, the second form opens in the first form's data session.

This is very useful in some cases, but I don't think it's what you want. You probably need to change FORM1 to use a private data session.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform