Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with USE AGAIN & Multiple DataSessions
Message
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:
01326246
Views:
18
Oh Yes, also only occurs in a Compiled App, not in the DE.

>Hi All,
>
>Have a form (FORM1) which uses the Default DataSession with a Local View (Will Call VIEW1) in the Form's DataEnvironment with Alias Property Set to 'Source' and NoDataOnLoad set to .T.
>
>In the FORM1's LOAD Method there is Code similar to:
>
>SELECT Source
>{Create Indexes}
>
>USE VIEW1 AGAIN IN 0 ALIAS Selected
>{Create Indexes}
>
>Code works with no problem and no View Parameter Prompt
>
>
>Have a 2nd form (FORM2) with a Private Data Session, the same DataEnvironment & Load Method Code.
>
>1. If I run FORM1 first, then do something that Queries VIEW1 (Global Data Session), and then run FORM2 (Private Data Session), I have no problem.
>
>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...
>
>Anyone seen this?
Previous
Reply
Map
View

Click here to load this message in the networking platform