IndexOrd

<< Click to Display Table of Contents >>

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

IndexOrd

Declaration

function IndexOrd: Integer;

Description

Gets the current order number identifying the order work area.

Return Value

For NTX and IDX files, this is the identifying order number for the current work area originally returned by Index or IndexOpen. For CDX and NSX files, this is the area assigned to the tag when the file was opened (or when a new tag was created with IndexTag).

 

If no index is open, or natural order has been selected, zero will be returned.

Delphi Example

// Display current index order, name, etc.

BoxOrder.Text := IntToStr( ApTbl.IndexOrd );

BoxName.Text := ApTbl.IndexFileName( ApTbl.IndexOrd );

BoxKey.Text := ApTbl.IndexKey;

C++Builder Example

// Display current index order, name, etc.

BoxOrder->Text = IntToStr( ApTbl->IndexOrd() );

BoxName->Text = ApTbl->IndexFileName( ApTbl->IndexOrd() );

BoxKey->Text = ApTbl->IndexKey();

See Also

SetOrder, TagArea