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

LIST.INSERTITEM built-in procedure

This procedure inserts an item into a list at the specified position.

Syntax


PROCEDURE LIST.INSERTITEM
(list Listofchar),
pos PLS_INTEGER,
item VARCHAR2);

Parameter

Description

list

The name of an existing list.

pos

A position (base equals 0).

item

A list item.

Example


/* 
** Add a string to the List my_List n third place
** then retrieve the third item and print it
*/
PROCEDURE insert_item(my_List LIST.LISTOFCHAR) IS
BEGIN
  LIST.INSERTITEM(my_List, 2, 'This is the third item.');
  TEXT_IO.PUT_LINE(LIST.GETITEM(my_List, 2));
END;

See also

About the LIST built-in package

LIST built-in package