SelectedIndexes

>>-aListBox~SelectedIndexes------------------------------------><


The SelectedIndexes method retrieves the indexes of all items that are currently selected in the associated multiselection list box.

Return value:

A text string containing the indexes of the selected items in the list, separated by blanks.

Example:

The following example lists all items selected in the associated multiselection list box:

lb = self~GetListBox("Offers")
if lb == .Nil then return
sit = lb~SelectedItems
if sit > 0 then do
   say "You ordered:"
   sndx = lb~SelectedIndexes
   do i = 1 to sit
      parse var sndx order sndx
      say "1 x" lb~GetText(order)
   end
end