#POP (delete and re-fix a multi-value symbol) 

Top  Previous  Next

 

#POP( symbol )

#POP

Deletes the last instance of a multi-valued symbol and re-fiXEs to the new last instance.

symbol

A multi-valued user-defined symbol.

The #POP statement deletes the last instance of a multi-valued symbol and re-fiXEs to the new last instance. This is directly equivalent to issuing a #DELETE(%MultiSymbol,ITEMS(%MultiSymbol)) statement followed by #SELECT(%MultiSymbol,ITEMS(%MultiSymbol)) statement.

Example:

#POP(%MultiSymbol)  #!Delete last instance and fix to new last instance