OnServerProgress

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloConnection > TApolloConnection Events >

OnServerProgress

Declaration

OnServerProgress(Sender: TComponent; Min, Max, Position: Integer);

Description

Fires as the server processes the SQL expression and prepares the result set. Position parameter is automatically reset to 0 once the Max value is reached. Also works on local table when used with the Apollo SQL add-on.

Delphi Example

procedure TForm1.apcServerProgress(Sender: TComponent; Min, Max, Position: Integer);

begin

 if Min > 0 then 

         ProgressBar1.Min := Min; 

 if Max > 0 then 

         ProgressBar1.Max := Max; 

 // Auto-reset at 100%

 ProgressBar1.Position := (Position mod ProgressBar1.Max);  

end;

See Also

OnReadProgress, OnWriteProgress