Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emulating a Private DataEnvironment
Message
 
 
To
28/03/2000 17:42:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00351719
Message ID:
00351730
Views:
21
Hi John,
One flaw that I see is if you call this from an existing private datasession. The Session object only creates a new datasession if it is created in the default datasession. You may be able to get around this by changing datasessions in the Init of the class, I don't know.

Then again, maybe this is a bug in the Session object that will be corrected in a future VFP version.


>Hi All,
>
>This is related to my crusade to dissect the report metadata tables. Anyway, I am looking for a way to emulate a private dataenvironment defined in a report.
>
>I have the part down about extracting the table and relationships, but I'm thinking that a way to do this may be to script out a class definition for a Session object. In the scripted PRG, I can move custom datasession code like BeforeOpenTables, OpenTables, whatever to the Init of the Session and open all of the tables in the Session.
>
>I cannot interfere with whatever datasession may be open when the routine is called.
>
>Than I compile the script on the fly (thank you SP3!) and use NEWOBJECT("MySession","script.prg") to add a new session object (thank you, GT!).
>
>When I don't need it anymore, I release the Session object. I close all of the tables in the Destroy of the Session.
>
>Does this sound "do-able"?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform