Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
#include <tsssx.idl>
Inherits IDispatch.
The collection class is used to iterate through all the items in the collection. In JavaScript, this is done by creating a new Enumerator object and passing the collection in during creation. In VBScript, the collection can be iterated through by using a FOR EACH loop.
JavaScript Example:
// store the enumerator we create
var eCollection = new Enumerator(Project.getGames());
var oItem;
// now iterate through the collection
for (; !eCollection.atEnd(); eCollection.moveNext())
{
// get the current item in the collection
oItem = eCollection.item();
// now you can do something with the oItem, in this
// example it would be an IGame object.
}
VBScript Example
Dim oGame
For Each oGame In Project.getGames()
' do something with the oGame object
Next
Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
Copyright © 1996-2007, Galactix Software. All rights reserved.
Questions? Comments? Send email to support@galactix.com