Exists

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties >

Exists

Declaration

property Exists: Boolean;

Description

Run-time, Read-only. True if the table referenced by the DatabaseName and TableName properties exists. False if not.

Delphi Example

ApTbl.DatabaseName := 'c:\Apollo\Data;

ApTbl.TableName := 'test.dbf';

ApTbl.TableType := ttSXFOX;

if not ApTbl.Exists then

begin

 ShowMessage( 'Table is missing!' ); 

 exit; 

end

else

 ApTbl.Open; 

C++Builder Example

ApTbl->DatabaseName = "c:\\Apollo\\Data";

ApTbl->TableName = "test.dbf";

ApTbl->TableType = ttSXFOX;

if (!ApTbl->Exists)

{

 ShowMessage( "Table is missing!" ); 

 exit(); 

}

else

 ApTbl->Open();