TIDEEngine.OpenFile Method
Opens the file specified by AFileName, adds it to the project, and makes it active in the IDE.
Remarks
OpenFile opens the file specified by AFileName and adds it to the project. If the IDE is open, the file is displayed in the IDE and becomes active. If the file already exists in the project, it is just open and made active in the IDE. The TIDEProjectFile associated with the file is returned by the method. No dialog or confirmation is displayed by OpenFile, it's most used to manipulate files from code. To open a file with end-user interaction (open dialog), use DlgOpenFile method.
Syntax
Unit: IDEMain
function TIDEEngine.OpenFile(AFileName: string): TIDEProjectFile;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AFileName | string |