Advertisement

05.09.2008 at 07:02AM PDT, ID: 23389334
[x]
Attachment Details

active session id

Asked by M_N_M in FoxPro Database

Tags: foxpro

I have a class "ODBC_Query" that is called to execute queries (automatically creates & destroyes connection when needed).

In the beginnen of my program, I have the following line:
PUBLIC ODBC_Query
ODBC_Query = CREATEOBJECT("ODBC_Query")

So I can call the ODBC_Query from anywhere in my program.

To do a query, I do the following:
ODBC_Query.Do("select * from employee","employee")

Up to here, everything is fine but in my forms, I have private data sessions.
When I do "ODBC_Query.Do(...)" in a form with a private data session, he creates the result set in the "default" data session (in which the class was created) but not in the current active (private) data session.

Is there any easy way to fix this??
I know you can set the datasession to another data session with "set datasession to" but then I have to change all the code where I allready used the "ODBC_Query.Do()" because I need to send an extra parameter :-/

Any other easy solution?

Please help!Start Free Trial
[+][-]05.09.2008 at 10:05AM PDT, ID: 21534763

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 10:22AM PDT, ID: 21534894

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 02:10AM PDT, ID: 21538297

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 02:11AM PDT, ID: 21538301

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 02:16AM PDT, ID: 21538309

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 10:31AM PDT, ID: 21539744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 06:49AM PDT, ID: 21542456

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 09:39AM PDT, ID: 21542849

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 10:59AM PDT, ID: 21543080

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 07:07PM PDT, ID: 21544280

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 10:56PM PDT, ID: 21552596

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:13AM PDT, ID: 21554683

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: FoxPro Database
Tags: foxpro
Sign Up Now!
Solution Provided By: ramrom
Participating Experts: 3
Solution Grade: B
 
 
[+][-]05.13.2008 at 08:01AM PDT, ID: 21555724

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 10:37AM PDT, ID: 21557367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 11:00AM PDT, ID: 21557561

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 02:20PM PDT, ID: 21559371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 10:58PM PDT, ID: 21561561

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628