Click or drag to resize

ListBox.CurrentItemNo Property (Typed)

X#
A numeric value, between 1 and the ListBox:ItemCount, indicating which item is currently selected.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY CurrentItemNo AS LONG GET SET 
Request Example View Source

Property Value

Type: Long
A numeric value, between 1 and the ListBox:ItemCount, indicating which item is currently selected.
Remarks
A numeric value, between 1 and the ListBox:ItemCount, indicating which item is currently selected. If no item is selected, it is 0.The ListBox:CurrentItemNo assign also changes ListBox:CurrentItem, ListBox:TextValue, and ListBox:Value. If the assigned ListBox:CurrentItemNo is zero (0), or if it exceeds the ListBox:ItemCount, then no item will be selected. If the ListBox:CurrentItemNo assign represents a change, then ListBox:ValueChanged will be set to TRUE.
See Also