HbListBox() > Methods xHarbour Developers Network  

oHbListBox:addItem()

Adds a new item to a list box.

Syntax

:addItem( <cText>, [<xValue>] ) --> self

Arguments

<cText>
This is a character string holding the textual information of a list box item.
<xValue>
Optionally, an arbitrary value can be passed which is associated with <cText>.

Description

Method :addItem() accepts a text string and an optional associated value which are added it to the internal list of list box items. The return value is the HbListBox object. The instance variable :itemCount reflects the new number of list box items maintained by a HbListBox object.


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