ListBox.GetItemValue Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual GetItemValue(
Usual nItemNumber = default
)
Request Example
View SourceParameters
- 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 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