ListBoxSetCurSel

 

The 'ListBoxSetCurSel' function selects the data of ListBox object.

 

void @ListBoxSetCurSel(string class_name, int index);

 

Parameters

string class_name : class name of ListBox object

int index : index that you want to select (If the number of data is four[10, 20, 30, 40], the index is as follows:10[index = 0], 20[index = 1], 30[index = 2], 40[index = 3])

 

Return Value

none

 

Example

@ListBoxSetCurSel("ListBox1", 1);

Description : Assume that data of 'ListBox1' are four[10, 20, 30, 40]. If you excute the above statement, '20'(the data of index '1') is selected.

 

Reference

@ListBoxAddString()

@ListBoxDeleteString()

@ListBoxFillDir()

@ListBoxFillFile()

@ListBoxGetCurSel()

@ListBoxGetSel()

@ListBoxGetSelCount()

@ListBoxGetText()

@ListBoxResetContent()

@ListBoxSetCurSel()