User's Guide

ADD_TO_LIST

Adds an item to a list of items Note: This module was intended for use only by other LAS modules.

Function:

Determines the length of the list and places the item in the (length + 1) location of the list.

Parameters:

LIST
List to modify. ADD_TO_LIST will retrieve the count of the number of items in the list and use that to add the new item to the end of the list.

ITEM
Item to add to the list. ADD_TO_LIST will add this item onto the end of the list.

Example:

  1. list=@the_list item=12

    The length of the_list is determined. The value '12' is placed into the_list at the index (length+1).

Description/Algorithm:

Count(LIST) + 1 is determined. If this index value is less than 1 (LIST has no value) then the index value is set to 1. The ITEM given is placed at the determined index location in LIST.

Nonfatal Error Messages:

    None.

Fatal Error Messages:

    None.

User Notes:

    None.