HbListBox() > Methods xHarbour Developers Network  

oHbListBox:setText()

Changes the textual information of a list box item.

Syntax

:setText( <nItemPos>, <cText> ) --> self

Arguments

<nItemPos>
This is a numeric value specifying the ordinal position of the the list box item whose textual information should be changed. Items are numbered from 1 to :itemCount.
<cText>
This is a character string holding the new textual information if the list box item at position <nItemPos>.

Description

List box items are arrays with two elements. The first element holds the textual information displayed in the list box, while the second element contains an associated value.

Method :setText() assigns the string <cText> to the first element of the list box item array specified with <nItemPos>.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe