VtListAddItem(1vtcl)


VtListAddItem -- add item(s) to List

Synopsis

VtListAddItem list_widgetName [options]

Description

Adds one or more items to a List.

Options

-item string (C)
Sets an item for the List widget.

-itemList list (C)
Sets a list of items for the List widget.

-position integer (NA)
Specifies the list position of the new item. (The base position is 1. To indicate the last item on the List, use 0.)

Return values

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

ITEM_AND_LIST
cannot set both -item and -itemList

ITEM_OR_LIST
need to set either -item or -itemList

ITEM_OR_POSITION
need to set either -item or -position

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

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