LIST.INSERTITEM
built-in procedureThis procedure inserts an item into a list at the specified position.
PROCEDURE LIST.INSERTITEM
(list Listofchar),
pos PLS_INTEGER,
item VARCHAR2);
Parameter |
Description |
|
The name of an existing list. |
|
A position (base equals 0). |
|
A list item. |
/*
** 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;
About the LIST
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.