Table of Contents

TScriptBaseObject Class

Base class for all objects instantiated from script-based class declarations using the $CLASS directive.

Remarks

TScriptBaseObject is the base class for script classes, a special kind of class declared in script. Script class are defined using the $CLASS directive. When this happens, the scripter understands the script as a "class declaration", and all methods and properties declared in script are treated as if they were methods and properties of the class. You can instantiate such classes from another script. All classes instantiated that way are inherited from TScriptBaseObject class.

Syntax

Unit: atScript

TScriptBaseObject = class(TPersistent, IScriptBasedObject);

Constructors

Name Description
CreateFromScript CreateFromScript constructor is called from scripter engine when a script-based object is instantiated by a script code.
You will not need to call CreateFromScript method nor to instantiate a TScriptBaseObject class directly.

Properties

Name Description
RunScript Returns the underlying TatScript object containing the source code and routines for this script-based object instance.