Description
Returns an item in the collection based on its name or index in the collection. Note, this is the default property of the outputs collection object, and thus you do not actually have to write it in your code.
Syntax
object.Item(nameOrIndex as Variant)
Arguments
nameOrIndex(Required Variant) – if a string value, this is the name of the output object you want to retrieve. If a numeric value, this is the index of the output object in the collection.
Return Value
(RDKOutput) – the output object. If the output requested does not exist in the collection, the return value is set to Nothing.
Example
'These two line of code are equivalent:
Set theOutput = RDKApp.Outputs.Item("myOutputName")
Set theOutput = RDKApp.Outputs("myOutputName")
'And so are these:
Set theOutput = RDKApp.Outputs.Item(2)
Set theOutput = RDKApp.Outputs(2)