Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid losing recordsource and columns controlsource
Message
From
06/12/1999 20:35:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00298872
Message ID:
00299486
Views:
21
>Hi Ed,
>
>>a form must operate in the context of a single session.
>
>Yes I know this, but i need to access to another datasession.
>
>>you migth try creating something based on a session object subclass - set up the session object with a private datasession, and do whatever is needed in methods of the session - that way the form retains its default datasession.
>
>No I can't, the object is a DBCX2 metaobject that creates a second datasession, if i instantiate a subclass of this, i would get another sessionid again, if the only drawback is having to code again the recordsource & column controlsource, I'll do it, knowing this isn't a good way.
>

It still might work - create a Session subclass, save the DBCX2 datasession id to a property in the Session subclass, and do all the munging about in the session object, including doing the SET DATASESSION TO - again, the form's datasession doesn't get touched that way.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform