Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > ListView Control > ListView: Items functions >

ListView_GetItemText

Previous pageReturn to chapter overviewNext page

 

Description

 

Gets the text of a list-view item or subitem.

 

Syntax

 

sText = ListView_GetItemText(hWnd, ctrlID [, RowIndex [, nSubItem [, MaxSize]]] )

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the list-view control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

RowIndex

Number

Yes

Row index. Starts from 1.

If RowIndex <= 0, current selected item is considered.

nSubItem

Number

Yes

The index of the subitem. Starts from 1.

If Zero, 1 is assumed

MaxSize

Number

Yes

The max number of chars to return. If zero, a max of 2000 bytes will be returned.

 

Remarks

 

Restrictions

 

See also

 

Examples