AMT Help Files

COM Listview Interface

The Lion ListView object is returned by one of the following Lion COM connection functions: GetListViewByIndex or GetListViewByName.

The following functionality is provided:

Properties

Name Type Access Description
ColumnCount Integer Read-only The current number of columns in the ListView.
ItemCount Integer Read-only The current number of items in the ListView.
Name String Read-only The name of the ListView field.

Functions

Function name Return type Parameters Description
Name Type
GetColumnCaption String Col Integer

Returns the caption of the column specified in Col.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Ok Out Boolean
ErrorMsg Out String
GetItemChecked Boolean Row Integer

Returns the checked value of a specified row.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Ok Out Boolean
ErrorMsg Out String
GetItemSelected Boolean Row Integer

Returns the selected value of a specified row.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Ok Out Boolean
ErrorMsg Out String
GetItemValue String Row Integer

Returns the item value for the specified row and column combination.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Col Integer
Ok Out Boolean
ErrorMsg Out String
SetItemChecked Void Row Integer

Sets the specified row as checked (true) or unchecked (false) by the provided value.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Value Boolean
Ok Out Boolean
ErrorMsg Out String
SetItemSelected Void Row Integer

Sets the specified row as selected (true) or deselected (false) by the provided value.
Ok is set to true when successful. ErrorMsg contains the error message when unsuccessful.

Value Boolean
Ok Out Boolean
ErrorMsg Out String

The Out keyword before a parameter indicates that the parameter is passed by reference.

Contents