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

LIST.NITEMS built-in function

This function returns the number of items in a list.

Syntax


FUNCTION LIST.NITEMS
(list Listofchar)
RETURN PLS_INTEGER;

Parameter

Description

list

The name of an existing list.

Example


/* 
** 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;

See also

About the LIST built-in package

LIST built-in package