Table of Contents

TatScript.SourceCode Property

Gets or sets the script source code. Changing this property clears the compiled state.

Remarks

SourceCode property holds the current source code for the script. Executing a script is as simple as setting the SourceCode property and calling Execute method. You cannot change SourceCode if the script is running. An exception will be raised and change will not be performed. When you change the source code of the script, the script is cleared (see Clear method) and a new compilation is needed before executing the script.

Syntax

Unit: atScript

property TatScript.SourceCode: TStrings

See also