Directives

DROP

Removes Program from Memory

Format

DROP prog$[,ERR=stmtref]
 
Where: 

prog$

Name of the program to be unloaded from memory. String expression.

stmtref

Program line number or statement label to which to transfer control.

Description

Use the DROP directive to unload a program previously loaded into memory by the ADDR directive. The memory used while the program was loaded is returned to the system. PxPlus returns an Error #17: Invalid file type or contents if you use a DROP statement for a program that is not currently loaded in memory.

Note:
In Object Oriented Programming, DROP OBJECT can be used to delete an object and DROP CLASS can be used to delete a class. See DELETE and DELETE OBJECT.

See Also

ADDR Load and Lock Program in Memory 

Example

drop "ARDATE"