Difference between revisions of "RELEASE"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
(Example)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
''[[RELEASE Commands|RELEASE ... commands]]''
 +
 
==Purpose==
 
==Purpose==
 
Delete memory variables and free the storage that they were occupying
 
Delete memory variables and free the storage that they were occupying
 
  
 
==Syntax==
 
==Syntax==
 
RELEASE <memvar> | <memvar list> | ALL [LIKE <skeleton>][EXCEPT <skeleton>]
 
RELEASE <memvar> | <memvar list> | ALL [LIKE <skeleton>][EXCEPT <skeleton>]
 
  
 
==See Also==
 
==See Also==
 
[[CLEAR MEMORY]], [[PRIVATE]], [[PUBLIC]], [[RESTORE]], [[RETURN]], [[SAVE]], [[STORE]], [[UNSET()]]
 
[[CLEAR MEMORY]], [[PRIVATE]], [[PUBLIC]], [[RESTORE]], [[RETURN]], [[SAVE]], [[STORE]], [[UNSET()]]
 
  
 
==Description==
 
==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.
+
The RELEASE command deletes memory variables, and releases the storage that they were occupying.  Lianja 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==
 
==Example==
Line 23: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Memory Variables]]
+
[[Category:Declaring Variables and Arrays]]
[[Category:Memory Variables Commands]]
+
[[Category:Objects]]

Latest revision as of 13:05, 5 December 2017

RELEASE ... commands

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, UNSET()

Description

The RELEASE command deletes memory variables, and releases the storage that they were occupying. Lianja 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