Topic Path: Symbol Reference > Types > TWorkEvent Type
ContentsIndexHome
PreviousUpNext
TWorkEvent Type

Indicates that a read or write operation is being performed.

File
TWorkEvent = procedure (ASender: TObject; AWorkMode: TWorkMode; AWorkCount: Integer) of object;
Parameters 
Description 
ASender 
Object instance triggering the event.
 
AWorkMode 
The operation to be performed.
 
AWorkCount 
Number of bytes affected by the event. 

TWorkEvent is an object procedure that represents the event fired when a component is receiving or sending data. TWorkEvent is the type used for the TIdComponent.OnWork, and is often used to update progress indicators. 

ASender is the object instance triggering the event. 

AWorkMode indicates if the component is receiving or sending data and can contain one of enumeration values in TWorkMode

AWorkCount indicates the number of bytes sent or received in the read or write operation.

TWorkMode 

TIdComponent.OnWork

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.