Show/Hide Toolbars

XSharp

NoteThis command is not available in the Core and Vulcan dialects
NoteThis 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

Purpose

Releases public and private memory variables visible to the current routine by assigning a NIL value to them.

Syntax

RELEASE <idMemvarList>
RELEASE ALL [LIKE | EXCEPT <Skeleton>]

Arguments

<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.

 

ALLReleases 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.

Description

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.  

Assembly

XSharp.RT.DLL

See Also

CLEAR MEMORY, LOCAL, PRIVATE, PUBLIC, QUIT