filetail OnFileChanged event
Return to Introduction  Previous page  Next page
Applies to
dcFileTail component.  

Declaration
type  
  TdcFileTailFileChangedEvent = procedure(Sender: TObject; OldFileSize, NewFileSize: Int64) of object;  
 
property OnFileChanged: TdcFileTailFileChangedEvent;  

Description
The OnFileChanged event occurs when the file size is changed.  
 
Write the OnFileChanged event handler to be informed when file updated and receive previous and new files size from OldFileSize and NewFileSize parameters.  

Remarks
iiinfo Because the Delphi 3 and C++ Builder 3 does not supports the Int64 type, the OldFileSize and NewFileSize parameters uses the "Extended" (float) type. Int64 are used in the Delphi4 and higher.  

See also
OnFileAppended event.  
File not found.