Login | |
|
 |
RE: Creating collections explicitly - 2/17/2006 9:22:26 AM
|
|
 |
|
| |
ebgreen
Posts: 4960
Score: 31
Joined: 7/12/2005
Status: offline
|
Old question, but I will answer it anyway. In vbscript, there is no stand alone collection data type. The functionality of collections is contained in the Array and Dictionary types instead. It would be simple to write a collection class however. I can do that if it would be helpful to anyone.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Creating collections explicitly - 2/17/2006 9:48:20 AM
|
|
 |
|
| |
ebgreen
Posts: 4960
Score: 31
Joined: 7/12/2005
Status: offline
|
Ok, well I decided to make a collection class of my own just for fun. What Methods/Properties should I give it? So far I can think of: .Add - Add an Item to the collection .Count - The number of items in the collection .Items - Returns an array of the items in the collection for use in a for-next loop. .GetItem(nIndex) - Returns the Indexth item from the collection
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|