davidvilla
Member
I am trying to connect a DB after a class is initiated and try to access it. But I am not able to. This is what I trying:
prog1.p:
--> connect mydb1
--> call prog2.p
prog2.p:
--> uses class mycls1
--> object for class mycls1
mycls1:
--> access mydb1 (as it is already connected in prog1.p)
Now in mycls1, I want to connect to a new db. So, I tried to call another program that will connect to this new db and then call another program to access the new db. But it does not work that way.
mycls1:
--> access mydb1
--> call prog3.p
prog3.p:
--> connect mydb2
--> call prog4.p
prog4.p:
--> access mydb2
Here I am not able to access mydb2.
I also tried to disconnect mydb1 in prog3, but still mydb1 is available in prog4.
Can you please help?
OE Version: 11.2
OS: Unix
prog1.p:
--> connect mydb1
--> call prog2.p
prog2.p:
--> uses class mycls1
--> object for class mycls1
mycls1:
--> access mydb1 (as it is already connected in prog1.p)
Now in mycls1, I want to connect to a new db. So, I tried to call another program that will connect to this new db and then call another program to access the new db. But it does not work that way.
mycls1:
--> access mydb1
--> call prog3.p
prog3.p:
--> connect mydb2
--> call prog4.p
prog4.p:
--> access mydb2
Here I am not able to access mydb2.
I also tried to disconnect mydb1 in prog3, but still mydb1 is available in prog4.
Can you please help?
OE Version: 11.2
OS: Unix