Window-based DialogsClass ts_dialogcontrolSingleSelTreeView SelectItem Select a value from the list in the control as the current value. Call: ts_dialogcontrol(iDialogcontrolDescr,"SelectItem", int itemindex); Here: Itemindex = The index of the selected value in the control's list.