Table of Contents

TIDEEngine.NewFormUnit Method

Programatically adds a new file containing a script and an associated form to the current project.

Remarks

Call NewFormUnit to programatically add a new file to current project. The file will contain a script and an associated form. The language of the script is specified by ALanguage parameter. The newly created file will become the selected (active) file in the IDE, if IDE is visible. The method returns the newly created TIDEProjectFile object associated with the file.

Syntax

Unit: IDEMain

function TIDEEngine.NewFormUnit(ALanguage: TScriptLanguage): TIDEProjectFile;

Parameters

<-> Parameter Type Description
ALanguage TScriptLanguage

See also