TIDEEngine.DlgCloseFile Method
Closes the specified file, asking the end-user to save it if modified.
Remarks
Closes the file specified by AFile. If the file was already saved, then it is not removed from project, just made invisible in the IDE. If the file is a new file that was not saved yet, then it's removed. If the file was modified, the engine opens a dialog asking the end-user to confirm if the file should be saved. The result of the closing operation is returned in the TIDECloseFileResult result
Syntax
Unit: IDEMain
function TIDEEngine.DlgCloseFile(AFile: TIDEProjectFile): TIDECloseFileResult;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AFile | TIDEProjectFile |