Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
? on Private Data Sessions
Message
From
21/10/1999 14:46:21
 
 
To
21/10/1999 13:38:09
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00279497
Message ID:
00279545
Views:
11
>Hi everyone,
>
>I have a form with Private Data sesssion. I am trying to open files through a method "OpenDbf" stored in a class library "myApp". I created an object variable thru G_oApp=create("myApp"). I placed the following code in the Load event of the form
>G_oApp.OpenDbf(tablename, aliasname,etc.). All these code execute, but since form has a private data session, I am not able to see the table after the load event is over. The interesting thing is, if I use the following code USE tablename in the Load event, I can see the table. If I use default data session and G_oApp.OpenDbf method, I can see the table. But...I can not when private data session and G_oApp.Opendbf go together. remember all the code execute. G_oApp.opendbf actually opens the table in the Load event, but then it is unavailable after the load event. How to overcome this...?
>
>TIA

Your G_oApp object was created in the Default DataSession so opening the table thru that object opens it in the Default DataSession. You can pass the DataSessionID of the form, change the data session in the G_oApp method to this session, open the table, then restore the DataSession.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform