Difference between revisions of "CLEAR AUTOMEM"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=CLEAR AUTOMEM=
 
 
 
==Class==
 
Memory Variables
 
 
 
 
==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
Line 19: Line 12:
  
 
==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.
  
  
Line 48: Line 41:
 
read
 
read
 
if not change()
 
if not change()
  replace customer.name with m.name,;
+
    replace customer.name with m.name,;
  customer.address with m.address,;
+
      customer.address with m.address,;
  customer.state with m.state
+
      customer.state with m.state
 
endif
 
endif
 
clear automem
 
clear automem
Line 57: Line 50:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Memory Variables]]
 +
[[Category:Memory Variables Commands]]

Latest revision as of 14:44, 10 November 2009

Purpose

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


Syntax

CLEAR AUTOMEM


See Also

APPEND AUTOMEM, CHANGE(), REPLACE AUTOMEM, SET LOCKTYPE, 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

set locktype to optimistic
use customer
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


Products

Recital Server, Recital