GetDatabaseNames

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloConnection > TApolloConnection Methods >

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

GetDatabaseNamesList, GetTableNames