Function Manual 
 01/2017 
303 
  For a list box, the function supplies the cursor index. 
The control name should be transferred as text expression of the 
function. 
 
 
<function name="control.getcurssel" retvar="var"> 
control name </function> 
 
 
<let name>="index"></let> 
<function name="control.getcurssel" 
">_T"listbox1"</function> 
  For a list box, the function sets the cursor to the appropriate line. 
The control name should be transferred as text expression of the 
function. 
 
 
<function name="control.setcurssel" > control name, 
index</function> 
 
 
<let name>="index">2</let> 
<function name="control.setcurssel" 
">_T"listbox1",index</function> 
  For a list box, the function copies the contents of the selected line to 
the specified variable. 
A string variable should be specified as reference variable. 
The control name should be transferred as text expression of the 
function. 
 
 
<function name="control.getitem" return="var"> con-
trol name, index </function> 
 
 
<let name>="index">2</let> 
<let name>="item" type="string"></let> 
 
<function name="control.getitem" return="item" 
">_T"listbox1",index</function>