CasewareDocs

Item

Gets the value of the specified parameter.

Compatibility

Available as of IDEA version 9.1.1

Syntax

Item(parameterName as String)

Parameter

parameterName

The name of the parameter of which the value is requested. The parameter names are case-insensitive.

Remark

An exception is thrown if the name is null or if a parameter with the specified name does not exist.

Return Value

The value of the specified parameter.

IDEA Script syntax:

SmartContext.Parameters.Item("P1")

parameters("P1") (where parameter is a variable that was sent to SmartContext.Parameters).

Examples

Example 1: Retrieves the value of the parameter P1 using the property Item.

Sub Main 
Dim res As Variant
res = SmartContext.Parameters.Item("P1")
End Sub

Example 2: Retrieves the value of the parameter P1 using the indexer.

Sub Main 
Dim parameters As Object
Set parameters = SmartContext.Parameters

Dim res As Variant
res = parameters("P1")
End Sub