Click or drag to resize

ListBox.SelectItem Method (Typed)

X#
Turn on the selection of an item in a list box.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SelectItem(
	nItemId AS LONG
) AS LOGIC
Request Example View Source

Parameters

nItemId
Type: Long
The item number to be selected. Zero (0) represents the current item.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
Normally, the user turns selections on and off, but this method enables the program to do so also. This method is intended for use with a multiple selection list box (i.e., a list box created using the LBOXMULTIPLESEL style).
See Also