The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnOverwrite


Unit:SDL_filesys
Class:TUnivSaveDialog
Declaration:property OnOverwrite: TOnOverwriteEvent;
{TOnOverwriteEvent = procedure (Sender: TObject; FileName: string; var OverwriteReply: TModalResult) of object;}

The OnOverwrite event is triggered if a file already exists and the user is to be asked how to proceed. The OnOverwrite event should be used to display a modal dialog where the user can select between overwrite, not overwrite, and cancel.

Hint: Please note that OnOverwrite always has to be assigned to an event handler, otherwise an exception will be raised when the user specifies a files which already exists.



Last Update: 2023-Feb-06