HbListBox() > Methods |
|
|
oHbListBox:setItem()
Replaces an item in a list box.
Syntax
:setItem( <nItemPos>, <aItem> ) --> self
Arguments
- <nItemPos>
- This is a numeric value specifying the ordinal position of the the list box item to replace.
Items are numbered from 1 to :itemCount.
- <aItem> := { <cText>, <xValue> }
- This is an array with two elements. The first element contains a character string, and the second
an arbitrary value.
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 :setItem() replaces both, textual information and associated data, of the list box item
specified with <nItemPos>.
Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe