<< Click to Display Table of Contents >> GetDatabaseNames |
Declaration
function GetDatabaseNames: TPointer;
Description
Returns a pointer to an array of names for the available database aliases on an Apollo Database Server at the currently selected Host address and Port number. It is generally easier to use the GetDatabaseNamesList method instead.
Delphi Example
// Fills a combo box with available DatabaseName aliases
procedure TForm1.GetDatabaseNames;
var
msPtr : Pointer;
begin
cmbDatabaseList.Clear;
if ApolloConnection1.Connected then
begin
msPtr := ApolloConnection1.GetDataBaseNames;
if ( msPtr <> nil ) then
cmbDatabaseList.Items.LoadFromStream( TMemoryStream( msPtr ));
end;
end;
See Also
URL of this topic:
https://www.apollodb.com/docs/vcl/index_vcl.html?apollovcl_getdatabasenames.htm