Previous Next


Item Property (RDKInputs Collection Object) - Default

Description

Returns an item in the collection based on its name or index in the collection. Note, this is the default property of the inputs 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 input object you want to retrieve. If a numeric value, this is the index of the input object in the collection.

Return Value

(RDKInput) – the input object. If the input requested does not exist in the collection, the return value is set to Nothing.

Example

'These two line of code are equivalent:
Set theInput = RDKApp.Inputs.Item("myInputName")
Set theInput = RDKApp.Inputs("myInputName")
'And so are these:
Set theInput = RDKApp.Inputs.Item(2)
Set theInput = RDKApp.Inputs(2)