20130916

VBScript Collection 物件方法

Collection: A class representing a collection of ordered elements. The stored elements can be referred by an index number or by the key associated with the elements. It offers the following methods and properties based on the documentation of Visual Basic .NET:

Item(i|key):
傳回指定索引及鍵值的物件,
因為Item是 collection 物件預設方法,
所以collection.Item(i)可以簡寫 collection(i)。

"Count": Property to return the number of elements in the collection.
"Add(element)": Method to add an element at the end of the collection without a key.
"Add(element, key)": Method to add an element at the end of the collection with a key.
"Remove(i|key)": Method to remove the element of the specified index or key.

Unfortunately, I was not able to write an ASP page with a new collection object.

沒有留言:

張貼留言