Contents - Index - Previous - Next
OverwriteMode property
Applies to
TVCLUnZip component
Declaration
property OverwriteMode: TUZOverwriteMode = (Prompt, Always, Never, ifNewer, ifOlder);
Description
Set OverwriteMode to determine what should be done if a file is about to be extracted and a file of the same name already exists in the destination directory. The possible modes are
TUZOverwriteMode = (Prompt, Always, Never, ifNewer, ifOlder); ( The default is Prompt )
Setting Action Taken
Prompt One of two things will happen. If the OnPromptForOverwrite event is defined then it will be called and the application can decide whether to overwrite the file. If the OnPromptForOverwrite event is NOT defined then the component will display a messagebox to allow the user to decide whether to overwrite the file.
Always The file will be overwritten.
Never Tthe file will not be extracted if it would overwrite a file.
ifNewer The file will only overwrite the existing one if the archived file is newer than the existing one.
ifOlder The file will only overwrite the existing one if the archived file is older than the existing one.