ListBox Control functions

How to find item count in ListBox LBCount() This function would return total items in ListBox.

ListBox=parent:tt_ListBoxHandle("nativeclass=ListBox","height=23","width=113")
iList=ListBox:LBCount()

How to get name of the item in Listbox LBGetText(int arg1) Passing the zero based index of the ListBox returns the item name.

ListBox=parent:tt_ListBoxHandle("nativeclass=ListBox","height=23","width=113")
iList=ListBox:LBGetText(2)

  How to get index of the item in Listbox LBGetIndex(string arg1) Passing the string of the ListBox returns the item index.

ListBox=parent:tt_ListBoxHandle("nativeclass=ListBox","height=23","width=113")
iList=LBGetIndex("Trace Technology")

  How to get select item in the ListBox LBIselect(int arg1) LBTselect(string arg1 ) The item in the ListBox can be selected either by passing zero based item index or item name.

ListBox=parent:tt_ListBoxHandle("nativeclass=ListBox","height=23","width=113")
LBIselect(2)

Trace Technologies Pvt. Ltd.,  Copyright 2003 - 2006