Table of Contents

TIDESaveFileEvent Type

Event type used to save a project file to a custom location such as a database.

Remarks

TIDESaveFileEvent can be used by programmer to save a project file in a custom way (to a database, for example). The file to save is passed in AFileName parameter, and the type of file is passed in IDEFileType. The file content to be saved is passed in parameter AContent. For each project file, the event can be fired twice, one for the script source code (unit), one for the form file (resource), if it exists. You must set Handled parameter to true. If Handled parameter is false, the engine will save the file the the hard disk according to its file name. You don't need to handle this event. If this event is not assigned, it will not be fired, and engine will just save the file directly to disk. You only need to set this event in case you want to do some custom saving/loading of project files (like saving in a database, for example).

Syntax

Unit: IDEMain