Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a *.app and having it use my default data sessio
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322611
Message ID:
00322909
Views:
22
>>I'm not sure at this point where I want to go... the point of my original message was to rule out the one cludge-like possibility to make the whole scenario simpler. That one possibility is "can I even get a separate MyWiz.app to see what's in my main applications DS 1"
>
>Why not?

uhhhh... I dunno, just figured I couldnt be that lucky. =D) And I have this really old FPD skeleton in my closet where running a separate app from inside another exe was a total nightmare & waste of time... I havent gone there since.

>I have a luncher.exe that has a Do ['MyApp'] at the end of the prg. Then in MyApp.App, I have a menu option to call my Reports.App. Both of these apps can use the default DS [DS 1], or their own. Actually MyApp is in the default DS. Reports.App is controlled by a generic form to handle report selection and uses a private DS.
>
>Otherwise, I use properties of my oApp object to keep up with what DS I want to be working in for some of my app class methods. If oApp.nDataSession is zero, methods that look for this use the currently selected DS. Otherwise, the method code switches to the DS value found in that property [and switches back to what it was when finished, of course].

Beautiful Mark thank you! That saves me a whole bunch of non-billable research!

Now a new question, has anybody else noticed that the development environment gets really Dr Watson prone when passing around DS ID to manipulate the current DS ever since SP3? I've crashed burned ever time I mess with passing a DS ID ever since SP3, never could put my finger on a specific bug but I've bitched and moaned a whole lot regarding this.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform