Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private DE calling a form
Message
From
15/11/2000 13:50:25
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00442220
Message ID:
00442239
Views:
9
>To start, today's starting out like "one of those days". Here's the situation.
>
>I have a form that with DataSession set to "Private". It calls a second form with DS set to "Default".
>
>Today ('cause it used to work yesterday of course), when the second form is called, it can't see the tables/views open by the first form.
>
>It gets stranger. If I keep open the VFP "Data Session" window so that I could see what DS and tables/views are being loaded/unloaded, and run the program, this is what happens:
>
>1. Start program: I see current data session as "Default(1)" and 2 tables that are opened when program starts, as it should.
>2. Open the first form with Private DS: I still see the current session as the "Default(1)", although I could switch between this and the "frmSchedule(2)" DS in the DS Window.
>3. If I open the second form from the first form, the second form can't see any of the tables/views opened by the first form and generates an error.
>4. If, however, I "manually" switch the DS to "frmSchedule(2)" DS, everything works the way it should.
>
>What the heck is going on here????
>
>

Odd....
Does the second form have any tables/views in its DE?
If not, add one and see in which DS it gets opened. Not sure what it would tell you, but it might tell something.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform