Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Meanwhile, back at Private Data Sessions...
Message
From
09/10/1999 10:42:36
 
 
To
09/10/1999 08:30:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00274579
Message ID:
00274598
Views:
26
>Let me get this straiight.
>
>I open a bunch of tables at the start of my app. These are supposed to be available throughout the app.
>
>I then run a form with a PDS which opens up another bunch of tables.
>
>Are the tables I opened at the start of the app still available to me from within the PDS? Or do I have to open them explicitly again within the PDS?
>
>Harry

You can use the Set DataSession command to access the tables that you opened in your default data session.

But, a better way to do this is to create a global class, or application class that you would talk to, and that class would talk to that data.

For example, lets say you have a Users file that you want to get info from. Just create a global users class (with a private data session) that opens the users files. Then, any class can access it and you don't have to be switching data session, which can get hairy.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform