Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leave open tables from form to form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00421742
Message ID:
00421787
Views:
21
>I use the DATAENVIRONMENT ON ALL FORMS/REPORTS. It make you fille ouit the dataenvironment each time you create a new form/report. Any way of just using the DATAENVIRNMENT from the first FORM???????

You can pass your datasessionid from one form to the next.
When you call the form, say:

DO FORM MyForm WITH THISFORM.DATASESSIONID

Then, in the init method of the form you are calling, say:

LPARAMETERS lnDataSessionID
THISFORM.DATASESSIONID = lnDataSessionID

>How do you OPEN Databases in MAIN FORM.

You should write a MAIN program that opens your data or calls an application object that opens the data for you.

OPEN DATABASE MyDBC [SHARED]

>Keep them opened when you go to DETAIL FORM.

Once they are open, unless you close them, they stay open.
Jason Bradley Nance
jbnance@tresgeek.net

Got root?
Previous
Reply
Map
View

Click here to load this message in the networking platform