LISTDEL


8.1

 

The LISTDEL instruction removes an object from a COLLECTION or a PLFORM. The instruction uses the following format:

 

 

[label]

LISTDEL

{list},[{object},[...]]

 

Where:

label

Optional. A Program Execution Label.

list

Required. A previously created COLLECTION or loaded PLFORM variable from which the object is deleted.

object

Optional. An object definition that is deleted from the COLLECTION or PLFORM.

Flags Affected: NONE

Note the following:

  1. If {list} is a COLLECTION variable and no LISTINS instruction has been performed, the LISTDEL statement is ignored.

  2. If {list} is a PLFORM variable and no LISTINS or FORMLOAD instruction has been performed, the LISTDEL statement is ignored.

  3. Multiple objects may be specified in the LISTDEL statement.

  4. If no objects are specified, LISTDEL clears the COLLECTION.

 

 

See Also: Example Code, Object Instructions

 



PL/B Language Reference LISTCNT LISTGET