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'' in Developing Visual Tcl applications.

25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004