Dear forum members,
if I have MyConnection1 on Unit1 and MyQuery1 on Unit2 so I have to declare Unit1 in uses of Unit2 to use MyConnection1 in MyQuery1.Connection of unit2.
How can I use MyConnection1 without declaration Unit1 in Uses of Unit2 ??
kind regards
Sidi
MyConnection
Re: MyConnection
You cannot use the TMyConnection component in Unit 2, which is declared in Unit1, without adding Unit1 to the USES clause of Unit2. This behavior is related to IDE architecture specificity, but not to MyDAC functionality and we cannot affect it in any way.
Re: MyConnection
I've found a solution to the problemViktorV wrote:You cannot use the TMyConnection component in Unit 2, which is declared in Unit1, without adding Unit1 to the USES clause of Unit2. This behavior is related to IDE architecture specificity, but not to MyDAC functionality and we cannot affect it in any way.
I set TMyConnection and TMConnectDialog to a DataForm and then I can connect all units with TMyQuery to the DataForm-TMyConnection. In the respective application I have then only to add the DataForm in the Uses declaration.
Re: MyConnection
We are glad to hear that you have found a solution to the problem.
Feel free to contact us if you have any further questions about our products.
Feel free to contact us if you have any further questions about our products.