OnlineVariables.Item



Item(vID As Variant) As OnlineVariable

Parameters

vID As Variant
Index or name as Variant
If the parameter is a numerical value, the variable is searched by its index (>= 0 and <= Count-1). If it is an alphanumerical value, the variable is searched by its unique name.
ED
avaliable
RT
avaliable

Remarks

Returns the object OnlineVariable from the collection, which is identified by the parameter vID.

The parameter vID can have two values:
· Index: Access with an index mostly is used in combination with the property Count to find out the position of the online variable object in the list.
· Variable name: The online variable can also be accessed with its unique name.

Sample:


'enumerate all OnlineVariables
Sub EnumOLVs()
Dim i As Integer
Dim obOLV As OnlineVariable
	For i = 0 To thisProject.OnlineVariables.Count - 1
		Set obOLV = thisProject.OnlineVariables.Item(i)
		Debug.Print obOLV.Name & " (Vars: " & obOLV.Count & ")"
	Next i
End Sub


See Also

OnlineVariables, OnlineVariable