IndexFlip

<< Click to Display Table of Contents >>

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

IndexFlip

Declaration

function IndexFlip : WordBool;

Description

Dynamically toggles the descending flag value of the current IDX, CDX, or NSX tag. A descending index becomes ascending, and vice versa.

Return Value

The previous value of the descending index flag (True or False).

Delphi Example

procedure TForm1.Button1Click(Sender: TObject);

begin

 ApTbl.IndexFlip; // Invert current index order

 ApTbl.Refresh; 

end;

C++Builder Example

void __fastcall TForm1::Button1Click(TObject *Sender)

{

 ApTbl->IndexFlip(); // Invert current index order

 ApTbl->Refresh(); 

}

See Also

Index, IndexTag