GetItemText Function (ListView)

Class

ListView.

Action

Returns the text of an item.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

sText = listview.GetItemText (iIndex[, iColumn, bRawMode])
Variable Description
sText The text of the item. STRING.
iIndex The item to find. INTEGER.
iColumn Optional: The column position of the item. Default returns the whole line. INTEGER.
bRawMode Optional: Prevents spaces from being trimmed from items. BOOLEAN.

Notes

GetItemText returns the text of a listview item specified by index. If the ListView is in Details view, the text can be optionally limited to a specific column. By default the function returns the entire row.

Example

Verify(MyDialog.MyListView.GetItemText(4),"item text 4")