selected( ) example
The following onClick event handler copies all the selected items in the ListBox object select1 into another ListBox object named select2:
function makeSelections_onClick( )
form.select2.dataSource := "array form.select1.selected( )"