Page 1 of 1

TUNIConnection components confusion

Posted: Sun 24 Feb 2013 19:50
by jpmilin
Hello,

Here is my problem. During the design phase, I put two TUniConnection components on a form.
The first one points to an Interbase database.
The second one points to a Sqlite database.
Still in design phase, in the property window, I turn the active property of the second connection on.
And the login dialog of the first connection is displayed !!! As I dismiss this dialog, the "database"
field of the second connection is replaced by the "database" field of the first one.

It seems that there is some mixup between the components...

Has anybody an explanation and work around about this problem ? Thanks in advance

Re: TUNIConnection components confusion

Posted: Mon 25 Feb 2013 13:16
by AlexP
Hello,

If you haven't set the TUniConnection.ConnectDialog property, then a new TUniConnectDialog will be created, but the data will be taken to it from the registry. In order not to save data about connection to the registry, you should set the TUniConnectDialog.StoreLogInfo property to False: in this case, the correct DB name will be displayed in TUniConnectDialog.

Re: TUNIConnection components confusion

Posted: Mon 25 Feb 2013 14:14
by jpmilin
Thanks for your reply Alex. It fixed the problem indeed.

Re: TUNIConnection components confusion

Posted: Mon 25 Feb 2013 14:20
by AlexP
Hello,

Glad to see that the problem was solved. If you have any other questions, feel free to contact us.