Item - method of the Collection object
Description:
The property represents a collection item specified in the index parameter.
Syntax:
Object Item(Variant Id)
Parameters:
Id | (Variant) Specifies the collection item. The value je:
- Name (String, case sensitive text, for example "d1") or
- Index (Long, zero-based index) |
---|
Example:
Access to the collection item:
JavaScriptVBScriptSelect and copy to clipboard
var oCollection = pMe.Pm("/Data");
var oItem = oCollection.Item("d0");
// or
oItem = oCollection.Item(0);
Dim oCollection, oItem
Set oCollection = pMe.Pm("/Data")
oItem = oCollection.Item("d0")
' or
oItem = oCollection.Item(0)