Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing DataSessionID's
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00157306
Message ID:
00157478
Views:
19
Chad,

If the second form is switched to Default DataSession and it's launched from a method of the first form, it'll automatically open in the first form's private DS.

>I thought I had accomplished this before (maybe I hadn't), but I'm trying to launch Form2 from Form1 and pass it Form1's DataSessionID. Both forms are in PrivateDataSessions. I'm passing form1's reference to form2. In the init of form2, I've tried this:
>
>1) This.DataSessionID = poCaller.DataSessionID
>
>2) Set DataSession To poCaller.DataSessionID
>
>After either of those (or whatever you can give me that will work <g>), I'm looping through the controls and setting the control sources to the fields of a table that's open in form1. I keep getting "Variable Does Not Exist" or such.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform