LIST.NITEMS
built-in functionThis function returns the number of items in a list.
FUNCTION LIST.NITEMS
(list Listofchar)
RETURN PLS_INTEGER;
Parameter |
Description |
|
The name of an existing list. |
/*
** For each item in my_List, retrieve the
** value of the item and print it out.
*/
PROCEDURE print_List Is
BEGIN
FOR i IN 0..LIST.NITEMS(my_pkg.my_List)-1
LOOP
TEXT_IO.PUT_LINE(LIST.GETITEM(my_pkg.my_List, i));
END LOOP;
END;
About the LIST
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.