HbListBox() > Methods xHarbour Developers Network  

oHbListBox:getData()

Retrieves the data associated with a list box item.

Syntax

:getData( <nItemPos> ) --> xValue

Arguments

<nItemPos>
This is a numeric value specifying the ordinal position of the list box item to retrieve the associated data from. Items are numbered from 1 to :itemCount.

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 :getData() returns the second element of the list box item specified with <nItemPos>, or NIL when an invalid item position is specified.


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