Difference between revisions of "UNSET()"

From Recital Documentation Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
==Purpose==
 
==Purpose==
Delete a memory variable and free the storage that it was occupying
+
Delete memory variables and free the storage that they were occupying
  
  
 
==Syntax==
 
==Syntax==
UNSET(<memvar>)
+
UNSET(<memvar>[,<memvar2>...])
  
  
Line 16: Line 16:
  
 
==Description==
 
==Description==
The UNSET() function deletes a memory variable, and releases the storage that it was occupying.  Recital will automatically delete PRIVATE memory variables when a PROCEDURE or PROGRAM returns.  You cannot UNSET() memory variables belonging to other procedures.   
+
The UNSET() function deletes memory variables, and releases the storage that they were occupying.  Recital will automatically delete PRIVATE memory variables when a PROCEDURE or PROGRAM returns.  You cannot UNSET() memory variables belonging to other procedures.   
  
  

Revision as of 10:59, 22 October 2009

Class

Memory Variables


Purpose

Delete memory variables and free the storage that they were occupying


Syntax

UNSET(<memvar>[,<memvar2>...])


See Also

CLEAR MEMORY, ISSET(), PRIVATE, PUBLIC, RELEASE, RESTORE, RETURN, SAVE, STATIC, STORE, TYPE(), VARTYPE()


Description

The UNSET() function deletes memory variables, and releases the storage that they were occupying. Recital will automatically delete PRIVATE memory variables when a PROCEDURE or PROGRAM returns. You cannot UNSET() memory variables belonging to other procedures.


Example

if isset(m_var)
  unset(m_var)
endif


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer