Difference between revisions of "STORE AUTOMEM"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=STORE AUTOMEM=
 
 
 
 
==Class==
 
==Class==
 
Memory Variables
 
Memory Variables
Line 32: Line 29:
 
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
 
</code>
 
</code>

Revision as of 12:55, 26 May 2009

Class

Memory Variables


Purpose

To generate memory variables corresponding to the current record


Syntax

STORE AUTOMEM


See Also

APPEND AUTOMEM, CLEAR AUTOMEM, GATHER, REPLACE, REPLACE AUTOMEM, SCATTER, USE


Description

The STORE AUTOMEM command is used to generate memory variables corresponding to the current record. A memory variable with a matching name, data type and length is created for each field in the current record. The memory variables are initialized with the field values.


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


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer