Difference between revisions of "REPLACE AUTOMEM"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Memory Variables
 
 
 
 
==Purpose==
 
==Purpose==
 
Update fields with values stored in correspondingly named memory variables
 
Update fields with values stored in correspondingly named memory variables
Line 35: Line 31:
  
 
==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]]
 
[[Category:Memory Variables Commands]]
 
[[Category:Memory Variables Commands]]

Latest revision as of 16:12, 12 November 2009

Purpose

Update fields with values stored in correspondingly named memory variables


Syntax

REPLACE AUTOMEM


See Also

CLEAR AUTOMEM, GATHER, READ, SCATTER, STORE AUTOMEM, USE


Description

The REPLACE AUTOMEM command updates fields in the current record of the active table. It assumes the existence of memory variables that match the fields in terms of name, data type and size. Such memory variables can be generated automatically using the STORE AUTOMEM or USE…AUTOMEM commands.


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 automem
endif


Products

Recital Server, Recital