BuiltIn.GetListItem Method

Applies to TestComplete 15.63, last modified on April 10, 2024
This method is obsolete. See the Remarks section below.

Description

In TestComplete, some methods and properties return a list of items, for instance, Win32ComboBox.wItemList. That is, they return a string that contains items separated by line breaks (0Dh, 0Ah symbols). GetListItem returns an item by its index in such a list.

Declaration

BuiltIn.GetListItem(List, Index, Delimiter)

List [in]    Required    String    
Index [in]    Required    Integer    
Delimiter [in]    Optional    String Default value: CR, LF   
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

List

A string that holds a list of values separated by line break and carriage return symbols.

Index

A zero-based index of the desired item in the list.

Delimiter

A character or string that is used as an item separator in a string specified by the List parameter. By default, TestComplete considers that the items are separated with line breaks (0Dh, 0Ah symbols).

Result Value

A list item that has the specified index in this list.

Remarks

This method is obsolete. It is supported for backward compatibility only. To retrieve items from a list, use the aqString.GetListItem method.

See Also

GetListItem Method
GetListLength Method
ListSeparator Property

Highlight search results