Difference between revisions of "RELEASE"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 24: Line 24:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
release i,j,krelease all like code_*
+
release i,j,k
 +
release all like code_*
 
release all except c?de_*
 
release all except c?de_*
 
release all
 
release all

Revision as of 14:45, 16 March 2009

RELEASE

Class

Memory Variables


Purpose

Delete memory variables and free the storage that they were occupying


Syntax

RELEASE <memvar> | <memvar list> | ALL [LIKE <skeleton>][EXCEPT <skeleton>]


See Also

CLEAR MEMORY, PRIVATE, PUBLIC, RESTORE, RETURN, SAVE, STORE


Description

The RELEASE command deletes memory variables, and releases the storage that they were occupying. Recital will automatically release PRIVATE memory variables when a PROCEDURE or PROGRAM returns. You cannot release memory variables belonging to other procedures. If you RELEASE ALL from the '>' prompt, then all memory variables will be deleted. If you RELEASE ALL from a PROCEDURE, then only those memory variables that are PRIVATE to the PROCEDURE will be deleted. The <skeleton> takes the usual conventions of '?' matching any single character, and '*' matching zero or more characters.


Example

release i,j,k
release all like code_*
release all except c?de_*
release all


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer