ListBoxGetSel

 

The 'ListBoxGetSel' function checks whether the data corresponding to the specified index in ListBox object is selected.

 

int @ListBoxGetSel(string classname, int index);

 

Parameters

string class_name : class name of ListBox object

int index : index of ListBox object

 

Return Value

result (1 = The data corresponding to the specified index is selected. 0 = The data corresponding to the specified index isn't selected.)

 

Example

flag = @ListBoxGetSel("ListBox1", 3);

Description : If the data corresponding to the index '3' in 'ListBox1' is selected, '1' is stored in the variable named 'flag'. If the data corresponding to the index '3' in 'ListBox1' isn't selected, '0' is stored in the variable named 'flag'.

 

Version Information

supported version: 9.3.8 or higher

 

Reference

@ListBoxAddString()

@ListBoxDeleteString()

@ListBoxFillDir()

@ListBoxFillFile()

@ListBoxGetCurSel()

@ListBoxGetSel()

@ListBoxGetSelCount()

@ListBoxGetText()

@ListBoxResetContent()

@ListBoxSetCurSel()