TatScript.SelfRegisterAsLibrary Method
Overloads
TatScript.SelfRegisterAsLibrary(string)
Registers the current script as a library in the scripter component that owns it.
Syntax
Unit: atScript
function TatScript.SelfRegisterAsLibrary(AName: string): TatScripterLibrary; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AName | string |
See also
TatScript.SelfRegisterAsLibrary(TatCustomScripter, string)
Registers this script as a library in the scripter component specified by AScripter.
Remarks
All routines and global variables in the script (except those declared as private) become accessible from any other script in the specified scripter component. If the script is not yet compiled, it is compiled automatically.
If AName is not empty, methods and variables can also be accessed with the name as a prefix (e.g., MyLibrary.MyMethod), except for prototype methods declared as DLL functions.
Returns the library object instance created and registered in the scripter.
Syntax
Unit: atScript
function TatScript.SelfRegisterAsLibrary(AScripter: TatCustomScripter; AName: string): TatScripterLibrary; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AScripter | TatCustomScripter | ||
| AName | string |