Note | This command is not available in the Core and Vulcan dialects |
Note | This command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available |
Releases public and private memory variables visible to the current routine by assigning a NIL value to them.
RELEASE <idMemvarList>
RELEASE ALL [LIKE | EXCEPT <Skeleton>]
<idMemvarList> | A list of private or public variables to release. Specifying a variable name that does not exist or is not visible raises a runtime error. |
ALL | Releases all private variables and leaves public variables intact. |
LIKE | EXCEPT <Skeleton> |
Specifies a set of visible private variables to release (LIKE) or keep (EXCEPT) and leaves public variables intact. <Skeleton> can include literal characters as well as the standard wildcard characters, * and ?. If no variables match the <Skeleton>, nothing happens. |
This command does not actually delete the specified variables from memory like CLEAR ALL or CLEAR MEMORY. Instead, it releases the value of the variables by assigning NIL to them. For this reason, variables that are hidden do not become visible until termination of the routine initiating the RELEASE operation.
Note: Declared variables and constants are not affected by the RELEASE command.
XSharp.RT.DLL
CLEAR MEMORY, LOCAL, PRIVATE, PUBLIC, QUIT