Click or drag to resize

ListBox.GetItemValue Method

X#
Retrieve the value of a specified list box item.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD GetItemValue(
	nItemNumber
) AS USUAL CLIPPER
Request Example View Source

Parameters

nItemNumber (Optional)
Type: Usual
The number of the desired item. Specify one of the values listed below:

Return Value

Type: Usual
The value associated with the specified item.
Remarks
Value Position 0 The currently selected item. 1 The first item. n The nth item.
Examples
X#
1METHOD ListBoxClick(oControlEvent) CLASS EmailWindow
2LOCAL oControl := oControlEvent:Control AS Control
3SUPER:ListBoxClick(oControlEvent)
4IF IsInstanceOf(oControl, #ListBox)
5SELF:DialClient(oControl:GetItemValue(0))
6ENDIF
7RETURN NIL
See Also