Difference between revisions of "CLEAR AUTOMEM"

From Lianjapedia
Jump to: navigation, search
(Products)
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Initializes memory variables corresponding to the current record of the active table
 
Initializes memory variables corresponding to the current record of the active table
 
  
 
==Syntax==
 
==Syntax==
 
CLEAR AUTOMEM
 
CLEAR AUTOMEM
 
  
 
==See Also==
 
==See Also==
[[APPEND AUTOMEM]], [[CHANGE()]], [[REPLACE AUTOMEM]], [[SET LOCKTYPE]], [[STORE AUTOMEM]], [[USE]]
+
[[APPEND AUTOMEM]], [[REPLACE AUTOMEM]], [[STORE AUTOMEM]], [[USE]]
 
+
  
 
==Description==
 
==Description==
 
The CLEAR AUTOMEM command re-initializes memory variables corresponding to the current record of the active table, setting them to empty.  Such memory variables can be generated automatically using the STORE AUTOMEM and USE...AUTOMEM commands.
 
The CLEAR AUTOMEM command re-initializes memory variables corresponding to the current record of the active table, setting them to empty.  Such memory variables can be generated automatically using the STORE AUTOMEM and USE...AUTOMEM commands.
  
 
+
{| class="wikitable" width="100%"
{| class="wikitable"
+
 
!Data Type||Empty
 
!Data Type||Empty
 
|-
 
|-
Line 29: Line 25:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
set locktype to optimistic
+
use customers
use customer
+
 
store automem
 
store automem
@1,1 get m.name
 
@2,1 get m.address
 
@3,1 get m.state
 
read
 
if not change()
 
    replace customer.name with m.name,;
 
      customer.address with m.address,;
 
      customer.state with m.state
 
endif
 
 
clear automem
 
clear automem
 
</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:NoSQL Commands]]

Latest revision as of 12:43, 4 February 2013

Purpose

Initializes memory variables corresponding to the current record of the active table

Syntax

CLEAR AUTOMEM

See Also

APPEND AUTOMEM, REPLACE AUTOMEM, STORE AUTOMEM, USE

Description

The CLEAR AUTOMEM command re-initializes memory variables corresponding to the current record of the active table, setting them to empty. Such memory variables can be generated automatically using the STORE AUTOMEM and USE...AUTOMEM commands.

Data Type Empty
Character ""
Numeric 0
Logical .F.
Date {}
Memo ""

Example

use customers
store automem
clear automem