Collection Objects

1.12 Collection Objects

Collection.Add Method

Microsoft.VisualBasic.Collection


objectvariable.Add item [, key, before, after]

 

objectvariable required; Collection Object

The Collection object to which an item is to be added

item required; Object

An object of any type that specifies the member to add to the collection

key optional; String

A unique string expression that specifies a key string that can be used, instead of a positional index, to access a member of the collection

before optional; Object

Index or key of the item after which the new item is to be added

after optional; Object

Index or key of the item before which the new item is to be added

Description

Adds an item to a particular position in a collection, or to the end of the collection if no positioned specified.

Collection.Count Property

Microsoft.VisualBasic.Collection


objectvariable.Count

 

objectvariable required; Collection Object

An object variable of type Collection

Description

Returns an Integer containing the number of members in the collection.

Collection.Item Method

Microsoft.VisualBasic.Collection


objectvariable.Item(index)

 

objectvariable required; Collection Object

An object variable of type Collection

index required; Integer or String

The index (the ordinal position) or the unique key name of the object in the collection

Description

Returns the member of the collection for the specified key or ordinal position.

Collection.Remove Method

Microsoft.VisualBasic.Collection


objectvariable.Remove(index)

 

objectvariable required; Collection Object

An object variable of the Collection type

index required; Integer or String

The ordinal position or the unique key name of the item to remove

Description

Removes a member from a collection.

 



VB. NET Language Pocket Reference
VB.NET Language Pocket Reference
ISBN: 0596004281
EAN: 2147483647
Year: 2002
Pages: 31

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net