TatScript.Clear Method
Clears all compilation information for the script, resetting Compiled to False and removing associated events.
Remarks
Use Clear method to clear all info about script compilation. When Clear method is called, the Compiled property is set to false, all meta-information in ScriptInfo is erased, events attached to the script are removed, and other clean up operations. Please note that Clear method only refers to compilation information. It doesn't clear the source code, or other information like unit name, etc. You cannot clear a script if it is running.
Syntax
Unit: atScript
procedure TatScript.Clear; virtual;