JVCL Help:TJvSHFileOperation.OnFileMapping

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs after the file operation when any files were renamed.


Pascal

 TJvShFileMappingEvent = procedure (Sender: TObject; const OldFileName, NewFileName: string) ofobject;
propertyOnFileMapping: TJvShFileMappingEvent;


Parameters

Parameters Description
NewFileName Specifies the new name of a renamed file.
OldFileName Specifies the old name of a renamed file.
Sender The TJvSHFileOperation component that has sent this event.


Description

Write an OnFileMapping event handler to respond after the file operation when any files were renamed.
Only when you include fofRenameOnCollision in Options then the system will give a file a new name in a move, copy, or rename operation if a file with the target name already exists. Otherwise, the system shows a dialog box that asks for confirmation to replace the already existing target file.


See Also

TJvSHFileOperation.Options


About

Notes

This event will only occur if you include both fofRenameOnCollision and fofWantMappingHandle in Options.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page