Difference between revisions of "REPLACE AUTOMEM"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=REPLACE AUTOMEM=
 
 
 
 
==Class==
 
==Class==
 
Memory Variables
 
Memory Variables
Line 32: Line 29:
 
read
 
read
 
if not change()
 
if not change()
replace automem
+
    replace automem
 
endif
 
endif
 
</code>
 
</code>
Line 41: Line 38:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Memory Variables]]
 +
[[Category:Memory Variables Commands]]

Revision as of 15:36, 3 June 2009

Class

Memory Variables


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 Database Server, Recital Mirage Server, Recital Terminal Developer