Select Method (SLAutoCompleteBox)

Class

SLAutoCompleteBox class

Action

Types the given text into the auto box complete box and selects a match.

If there is no match after entering the text an exception is thrown. If value of the parameter matchIndex is less than 0 or greater than the number of matches an exception is thrown as well.

Syntax

autoCompleteBox.Select(text, [matchIndex])
Variable Description
text The text to type into the text box. STRING.
matchIndex Optional.The index of the match to select. The value is one-based. INTEGER.

Examples

In order to select the first match starting with the text "Apple" type:
autoCompletBox.Select("Apple")
In order to select the third match starting with the text "A" type:
autoCompletBox.Select("A", 3)