Difference between revisions of "UNSET()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to delete memory variables and free the storage that they were occupying
 
Function to delete memory variables and free the storage that they were occupying
 
  
 
==Syntax==
 
==Syntax==
 
UNSET(<memvar>[,<memvar2>...])
 
UNSET(<memvar>[,<memvar2>...])
 
  
 
==See Also==
 
==See Also==
 
[[CLEAR MEMORY]], [[ISSET()]], [[PRIVATE]], [[PUBLIC]], [[RELEASE]], [[RESTORE]], [[RETURN]], [[SAVE]], [[STORE]], [[TYPE()]], [[VARTYPE()]]
 
[[CLEAR MEMORY]], [[ISSET()]], [[PRIVATE]], [[PUBLIC]], [[RELEASE]], [[RESTORE]], [[RETURN]], [[SAVE]], [[STORE]], [[TYPE()]], [[VARTYPE()]]
 
  
 
==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==
Line 22: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Memory Variables]]
+
[[Category:Declaring Variables and Arrays]]
[[Category:Memory Variables Functions]]
+
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 07:32, 4 February 2013

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