GetIBCServerList and GetIBCDatabaseList

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wvisser
Posts: 6
Joined: Wed 11 Jan 2012 14:13

GetIBCServerList and GetIBCDatabaseList

Post by wvisser » Sun 09 Mar 2014 10:13

Hello,

Using IBDac on Firebird 2.5.
I looked into the demo database/server conttection examples which use GetIBCServerList and GetIBCDatabaseList procedures. However, GetIBCServerList only returns Localhost and also GetIBCDatabaseList does not seem to work correctly.
Also, there is nothing in the documentation on these procedures.
Do they work on Firebird?
Are they still supported? Or do I overlook something?

regards, Wilfried

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: GetIBCServerList and GetIBCDatabaseList

Post by ZEuS » Tue 11 Mar 2014 08:36

Thank you for the information. We will add the information about the GetIBCServerList and GetIBCDatabaseList procedures to the IBDAC documentation.
The GetIBCServerList and GetIBCDatabaseList procedures are internally used by the default IBDAC connection dialog to respectively load server name history and database name history stored in the registry. In addition, they can be used when building a custom connection dialog as it is shown in the IBDAC demo.

The GetIBCServerList procedure loads server name history from the registry.

Code: Select all

procedure GetIBCServerList(List: TStrings; WithEmpties: boolean = False);
The List parameter defines the string list into which the server name list will be populated.
The WithEmpties parameter specifies whether blank server names will be inserted into the list. The default value is False.

The GetIBCDatabaseList procedure loads database name history from the registry.

Code: Select all

procedure GetIBCDatabaseList(Server: string; List: TStrings); overload;
procedure GetIBCDatabaseList(ServerIndex: integer; List: TStrings); overload;
The Server parameter specifies the server name for which the database name history will be loaded.
The ServerIndex parameter specifies the index of the server name in the server list (starts from 1), for which the database name history will be loaded.
The List parameter defines the string list, into which the database name list will be populated.

Post Reply