newObjects-logo.gif (1024 bytes) newObjects ScriptAggregate

Component reference

Overview and ClassID/ProgID needed for the object creation.

Reference information about the component includes description of the methods of the componen.

ScriptAggregate methods and properties
pixel.gif (49 bytes) Namespaces collection methods and properties
Their functionality is the same as in ScriptManager2 object the following links point to its members
pixel.gif (49 bytes) Method Add Add items to the collection
Method AddEx Add items to the collection with extended options
pixel.gif (49 bytes) Method Clear Clear collection
pixel.gif (49 bytes) read only property Count Count of items in the collection
read only property Item (default) Get an item from the collection
read only property Key Get a key for the item in the collection
read only property Option Get options of an item
Method Remove Remove an item from the collection
Remarks

_NewEnum property of the collection returns an enumerator of the currently contained items. It enumerates the Keys not Items. Thus code that uses it enumerates the names and if it needs the corresponding item it uses Item property to obtain the item:

Dim I
I = 0
For K In ScpAggreg
WScript.Echo "Item name [" & I & "] is: " & K
I = I + 1
Next

Script control methods and properties
Method AddEventHandler Adds event handling script code
Method AddText Adds script code
Method AddTextEx Adds script code with additional options
Method Close Completely uninitializes the component
Method Connect Connects the script engine to the named items - in order to sink events
read only property lastError Returns error description
read only property lastErrorEx Returns last script error in a collection of named values.
Method IsDefined
Method WhereIsDefined Checks if routine/variable is defined/declared in the running script
read only property script Provides access to the global functions/subs and global data members of the running script
read only property versionString Returns string that can be used by the host that wants to know the component version
Method AddEngine Initializes the object with a specified script engine
Method Run Starts the loaded script
Method Stop Stops the running script
newObjects Copyright newObjects 2001-2005