Difference between revisions of "REPLACE AUTOMEM"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=REPLACE AUTOMEM=
 
 
 
==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 32: Line 25:
 
read
 
read
 
if not change()
 
if not change()
replace automem
+
    replace automem
 
endif
 
endif
 
</code>
 
</code>
Line 38: 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 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