Tmyconnection VS Tcustommyconnection
Posted: Thu 11 Aug 2011 10:03
Hi,
This is my problem: I need to connect a tmymetadata object to a Tmyconnection object, but i have to do this at runtime and I don't know which of the Tmyconnection I've already created will be chosen.
The problem is that i get the tmyconnection from a Tmyquery object.
When i try to set the connection with this statement
mymetadata1.connection := myquery1.connection;
i get an error because i'm trying to put in a Tmyconnection object a Tcustommyconnection object.
How can i do that?
why there are two kind of class Tmyconnection and Tcustommyconnection?
and why in tmyconnection i can set the PORT and in tcustommyconnection there isn't this parameter?
thanks!
This is my problem: I need to connect a tmymetadata object to a Tmyconnection object, but i have to do this at runtime and I don't know which of the Tmyconnection I've already created will be chosen.
The problem is that i get the tmyconnection from a Tmyquery object.
When i try to set the connection with this statement
mymetadata1.connection := myquery1.connection;
i get an error because i'm trying to put in a Tmyconnection object a Tcustommyconnection object.
How can i do that?
why there are two kind of class Tmyconnection and Tcustommyconnection?
and why in tmyconnection i can set the PORT and in tcustommyconnection there isn't this parameter?
thanks!