Information about a script associated with a class definition. ScriptDefinition is used in the ClassDefinition object.
Windows CE platforms
This object can be used only in the development environment.
It cannot be used in applications deployed to a Pocket PC or Smartphone
device or emulator.
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.
ScriptDefinition property |
Datatype |
Description |
---|---|---|
Access |
VarAccess |
The access level of the script (what objects can call the script). Values are:
|
AliasName |
String |
The alias value for an external function. The value is an empty string ("") for scripts that are not aliased external functions. Corresponds to the ALIAS FOR keyword in the external function declaration. |
ArgumentList |
VariableDefinition |
An unbounded array whose elements are VariableDefinition objects, one object per argument. The array is empty if there are no arguments. |
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
EventId |
Long |
The numeric event id for an event. For events that do not have an id, the value is -1. |
EventIdName |
String |
The event id name for an event. For events that do not have an id, the value is an empty string (""). |
ExternalUser Function |
String |
The filename of the DLL containing the external user function. The value is an empty string ("") for scripts that are not external user functions. Corresponds to the LIBRARY keyword in the external function declaration. |
IsExternalEvent |
Boolean |
Indicates if this is an external event. External events are automatically generated events that get dispatched elsewhere. |
IsLocallyDefined |
Boolean |
Indicates whether the event is defined at this level in the inheritance hierarchy. Values are:
IsLocallyDefined is not applicable to functions. |
IsLocallyScripted |
Boolean |
Indicates whether the script is implemented at this level in the inheritance hierarchy. Values are:
|
IsRPCFunction |
Boolean |
Whether this is an RPC function. Values are:
Corresponds to the RPCFUNC keyword in a declaration for a stored procedure. |
IsScripted |
Boolean |
Whether the event has a definition but no code at any level of the collapsed inheritance hierarchy. Values are:
Only events can be defined but not scripted. For functions, IsScripted is always TRUE. |
Kind |
ScriptKind |
Whether the script is a function or event. Values are:
|
LocalVariableList |
VariableDefinition |
An unbounded array whose elements are VariableDefinition objects, one object per local variable. The array is empty if there are no local variables. |
Name |
String |
The name of the script. |
ReturnType |
TypeDefinition |
The type information of the return value. For scripts which do not return anything, ReturnType is an invalid object. Use the IsValid function to test the value. |
Source |
String |
The source code for the script. Source is an empty string ("") if the source is not available (for example, when running an executable). |
SystemFunction |
String |
For built-in PocketBuilder functions, the filename of the DLL containing the function. The value is an empty string ("") for scripts that are not built-in PocketBuilder functions. |
ScriptDefinition function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Object |
Returns the type of the object. |
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |