multidiskscanner OnFolderNotExist event
Return to Introduction  Previous page  Next page
Applies to
dcMultiDiskScanner component.  

Declaration
type  
  TdcScanFolderEvent = procedure(Sender: TObject; Folder: Stringof object;  
 
property OnFolderNotExist: TdcScanFolderEvent;  

Description
The OnFolderNotExist event occurs if the IncludeList or ExcludeList contains instructions to scan folder which is not exist. The Folder parameter determines the folder that can not be scanned.  
 
This event occursbefore the component try to scan this folder. If the folder is exist - component will search files within this folder and OnScanFolder event occurs. If not exist - the OnFolderNotExist occurs.  

Example
procedure TForm1.dcMultiDiskScannerFolderNotExist(Sender: TObject; Folder: String);  
begin  
  Application.MessageBox(PChar('Folder "' + Folder + '" not exist.'), 'dcMultiDiskScanner', MB_ICONINFORMATION);  
end;  

See also
OnScanFolder event.