HbListBox() > Methods xHarbour Developers Network  

oHbListBox:setData()

Changes the data associated with a list box item

Syntax

:setData( <nItemPos>, <xValue> ) --> self

Arguments

<nItemPos>
This is a numeric value specifying the ordinal position of the list box item to associate new data with. Items are numbered from 1 to :itemCount.
<xValue>
This is an arbitrary value that is associated with the list box item specified with <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 :setData() assigns the value <xValue> to the second 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