VtListGetSelectedItem(1vtcl)


VtListGetSelectedItem -- return positions of selected items in a List

Synopsis

VtListGetSelectedItem list_widgetName [options]

Description

Gets the list of selected items from a List. By default, the items are returned by PositionList. Only one option may be specifed at one time.

Options

-byItemList (NA)
Specifies that a list of selected items is to be returned. For example:
{{item 1} {item 2}} 

-byPositionList (NA)
Sets the routine to return items by List position; for example:
{1 2} 

Return values

If VtListGetSelectedItem fails, it returns one of the following error messages:

NOT_LIST
referenced widget is not a List

OPTION_COUNT
too many or too few options specified

Standard errors
See ``Tcl widget creation errors''.

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.