Difference between revisions of "UNSET()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 9: Line 9:
  
 
==Description==
 
==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.   
+
The UNSET() function deletes memory variables, and releases the storage that they were occupying.  Lianja will automatically delete PRIVATE memory variables when a PROCEDURE or PROGRAM returns.  You cannot UNSET() memory variables belonging to other procedures.   
  
 
==Example==
 
==Example==

Revision as of 01:34, 9 December 2012

Purpose

Function to 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, STORE, TYPE(), VARTYPE()

Description

The UNSET() function deletes memory variables, and releases the storage that they were occupying. Lianja 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