TatBaseScripter.AddScript Method
Adds a new script to the Scripts collection with the specified language.
Remarks
Use AddScript as an alternative to Scripts.Add: the latter applies the DefaultLanguage setting, while AddScript lets you specify the language explicitly. Depending on the language, AddScript creates the appropriate TatScript descendant -- for example, TatPascalScript for Pascal or TatBasicScript for Basic.
Syntax
Unit: atScripter
function TatBaseScripter.AddScript(ALanguage: TScriptLanguage): TatScript;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| ALanguage | TScriptLanguage | The language of the script to create. |
Returns
The newly created TatScript instance added to the Scripts collection.