NEXT is a method that returns the subscript that follows a specified subscript. The method takes a single argument: the
subscript that you are testing for. The syntax is:
collection is the name of the collection.
If the specified subscript is less than the first subscript in the collection, the function returns the first subscript. If the subscript doesn't have a successor,
NULL. If you specify a
PRIOR doesn't return a value.
This example uses
NEXT to return the subscript that follows subscript
10 in the associative array,