TUNIConnection components confusion

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jpmilin
Posts: 6
Joined: Sun 24 Feb 2013 19:32

TUNIConnection components confusion

Post by jpmilin » Sun 24 Feb 2013 19:50

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUNIConnection components confusion

Post by AlexP » Mon 25 Feb 2013 13:16

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.

jpmilin
Posts: 6
Joined: Sun 24 Feb 2013 19:32

Re: TUNIConnection components confusion

Post by jpmilin » Mon 25 Feb 2013 14:14

Thanks for your reply Alex. It fixed the problem indeed.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUNIConnection components confusion

Post by AlexP » Mon 25 Feb 2013 14:20

Hello,

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

Post Reply