A script-enabled browser is required for this page to function properly.

LIST.APPENDITEM built-in procedure

This procedure appends an item to a list.

Syntax


PROCEDURE LIST.APPENDITEM
(list Listofchar,
item VARCHAR2);

Parameter

Description

list

The name of an existing list.

item

A list item.

Example


/* 
** Add an item to the end of 'my_List' then
** print out the number of items in the List
*/
PROCEDURE append (my_List LIST.LISTOFCHARS) IS
BEGIN
  LIST.APPENDITEM(my_List, 'This is the last item.');
  TEXT_IO.PUT_LINE(LIST.GETITEM(my_List,
  LIST.NITEMS(my_List)));
END;

See also

About the LIST built-in package

LIST built-in package