Please enable JavaScript to view this site.

Elements can be deleted by assigning the special value .NULL to them, using the element modification syntax given above. For example:

$m(.FRONT) = .NULL              ! delete the first element

$m(.BACK) = .NULL               ! delete the last element

 

foreach $$i in $m()

    if $$i = "something" then

        $m(.REF($$i)) = .NULL   ! delete the element

        exit                    ! always exit foreach loop

    endif                       ! after removing an element, as it

next $$i                        ! may invalidate the iterator

 

In addition, you can use the following dot-statements to delete:

.POPFRONT $m()                  ! delete first element

.POPBACK $m()                   ! delete last element

 

Created with Help+Manual 9 and styled with Premium Pack Version 5 © by EC Software