ScriptDefinition object
Information about a script associated with a class
definition. ScriptDefinition is used in the ClassDefinition object.
You cannot instantiate a ScriptDefinition object for a particular
script independently of a ClassDefinition object. Instead you access
the ScriptDefinition instances that are elements of the ScriptList
array of a ClassDefinition instance.
The ScriptDefinition object has information about:
-
The script’s name
and whether it is a function or an event -
The return type, arguments, and local variables
-
The source code
-
Whether the script is defined locally or in an ancestor
-
External function declarations
A ScriptDefinition object has no events.
Properties
ScriptDefinition property |
Datatype |
Description |
---|---|---|
Access |
VarAccess |
The access level of the script (what
|
AliasName |
String |
The alias value for an external function. |
ArgumentList |
VariableDefinition |
An unbounded array whose elements are |
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
EventId |
Long |
The numeric event ID for an event. For |
EventIdName |
String |
The event ID name for an event. For events |
ExternalUser |
String |
The file name of the DLL containing the |
IsExternalEvent |
Boolean |
Indicates whether this is an external |
IsLocallyDefined |
Boolean |
Indicates whether the event is defined
IsLocallyDefined is not applicable to functions. |
IsLocallyScripted |
Boolean |
Indicates whether the script is implemented
|
IsRPCFunction |
Boolean |
Whether this is an RPC function. Values
Corresponds to the RPCFUNC keyword in a |
IsScripted |
Boolean |
Whether the event has a definition but
Only events can be defined but not scripted. For functions, IsScripted |
Kind |
ScriptKind |
Whether the script is a function or event.
|
LocalVariableList |
VariableDefinition |
An unbounded array whose elements are |
Name |
String |
The name of the script. |
ReturnType |
TypeDefinition |
The type information of the return value. |
Source |
String |
The source code for the script. Source |
SystemFunction |
String |
For built-in PowerBuilder functions, |
Functions
ScriptDefinition function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
Object |
Returns the type of the object. |