<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > Alias |
Declaration
function Alias: String;
Description
Retrieves the table alias name assigned to the current work area when the table was opened. Under Apollo the alias is derived from the base name of the table file, excluding the extension. For example, the default alias for TEST.DBF would be TEST. If this table is already opened, and this alias is already in use, the next alias used woulf be TEST1, then TEST2, and so on.
This method should be of little or no use when using table objects as Delphi, C++Builder, and Apollo support, and is simply included for compatibility purposes.
Delphi Example
// Display table info
with ApTbl do
begin
Text1.Text := IntToStr( WorkArea );
Text2.Text := BaseName;
Text3.Text := Alias;
Text4.Text := BaseDate;
end;
C++Builder Example
// Display table info
Text1->Text = IntToStr( ApTbl->WorkArea );
Text2->Text = ApTbl->BaseName();
Text3->Text = ApTbl->Alias();
Text4->Text = ApTbl->BaseDate();
See Also