CurrentValueIndex Property

The CurrentValueIndex property sets or returns the current prompt value index.

Syntax

Prompt .CurrentValueIndex

Applies To

Prompt Object

Discussion

Use this property to iterate through prompt values for multi-valued prompts. The index starts at 1.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Type

Integer

Access

Read/Write

Examples

new_report = model.Reports.Add()new_query = new_report.Queries.Add()new_prompt
= new_query.Prompts.Add()new_prompt.CurrentValueIndex = index