Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private DE calling a form
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00442220
Message ID:
00442237
Vues:
9
How is the first form calling the second form? Is there a wrapper function or is doing a straight do form myform?

Default DE just says don't create a new datasession. If the form is launched via a wrapper (e.g. form manager that exists in the default datasession) then the second form is launched in the datasession of the wrapper.

>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.
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform