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 objects can Private! Public! Protected! System! |
|
AliasName |
String |
The alias value for an external function. The value |
|
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 events that |
|
EventIdName |
String |
The event ID name for an event. For events that do |
|
ExternalUserFunction |
String |
The file name of the DLL containing the external |
|
IsExternalEvent |
Boolean |
Indicates whether this is an external event. |
|
IsLocallyDefined |
Boolean |
Indicates whether the event is defined at this TRUE FALSE — The event is defined IsLocallyDefined is not |
|
IsLocallyScripted |
Boolean |
Indicates whether the script is implemented at this TRUE FALSE — There is no |
|
IsRPCFunction |
Boolean |
Whether this is an RPC function. Values TRUE — Is an RPC function. FALSE Corresponds to the |
|
IsScripted |
Boolean |
Whether the event has a definition but no code at TRUE — The event has a script at some level of FALSE — The Only events can be |
|
Kind |
ScriptKind |
Whether the script is a function or event. Values ScriptEvent! ScriptFunction! |
|
LocalVariableList |
VariableDefinition |
An unbounded array whose elements are |
|
Name |
String |
The name of the script. |
|
ReturnType |
TypeDefinition |
The type information of the return value. For |
|
Source |
String |
The source code for the script. Source is an empty |
|
SystemFunction |
String |
For built-in PowerBuilder functions, the file name |
Functions
|
ScriptDefinition function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Object |
Returns the type of the object. |