Page 1 of 1

GetIBCServerList and GetIBCDatabaseList

Posted: Sun 09 Mar 2014 10:13
by wvisser
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

Re: GetIBCServerList and GetIBCDatabaseList

Posted: Tue 11 Mar 2014 08:36
by ZEuS
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.