Previous Next


Item Property (RDKCorrelations 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 correlations 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 correlation object you want to retrieve. If a numeric value, this is the index of the correlation object in the collection.

Return Value

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

Example

'These two line of code are equivalent:
Set theMatrix = RDKApp.Correlations.Item("myMatrix")
Set theMatrix = RDKApp.Correlations("myMatrix")
'And so are these:
Set theMatrix = RDKApp.Correlations.Item(2)
Set theMatrix = RDKApp.Correlations(2)