GetTableNames

<< Click to Display Table of Contents >>

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

GetTableNames

Declaration

function GetTableNames: TPointer;

Description

Returns a pointer to an array of table names on an Apollo Database Server for the available database aliases in the active database. The active database is selected using the run-time DatabaseName property. It is generally easier to use the GetTableNamesList method instead.

Delphi Example

// Fills a combo box with table names from SAMPLEDATA alias

procedure TForm1.GetDatabaseNames;

var

 msPtr: Pointer; 

begin

 cmbTableList.Clear; 

 if ApolloConnection1.Connected then 

 begin 

         // Select the database name to look for table in 

         ApolloConnection1.DataBaseName := 'SAMPLEDATA'; 

 

         msPtr := dmApolloData.ApolloConnection1.GetTableNames;

         if ( msPtr <> nil ) then 

                 cmbTableList.Items.LoadFromStream( TMemoryStream( msPtr )); 

 end;

end;

 

See Also

GetTableNamesList, GetDatabaseNames