RYOFilterRestore

<< Click to Display Table of Contents >>

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

RYOFilterRestore

Declaration

function RYOFilterRestore( sFileName : String ) : WordBool;

Description

Sets or resets the active bitmap to one saved to disk by RYOFilterSave.

Parameters

sFileName: A fully qualified filename containing a bitmap saved with RYOFilterSave.

Return Value

True or False depending on the outcome of the operation.

Delphi Example

procedure TForm1.Open1Click(Sender: TObject);

begin

 if OpenDialog1.Execute then 

 if ApTbl.RYOFilterRestore( OpenDialog1.FileName ) then

 Button1.Caption := 'Clear Filter'; 

end;

C++Builder Example

void __fastcall TForm1::Open1Click(TObject *Sender)

{

 if (OpenDialog1->Execute()) 

 if (ApTbl->RYOFilterRestore( OpenDialog1->FileName ))

         Button1->Caption = "Clear Filter"; 

}

See Also

RYOFilterActivate, RYOFilterCopy, RYOFilterCreate, RYOFilterDestroy, RYOFilterSave, RYOFilterSetBit