[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| STORE |
+---------------------------------+
STORE <expr> TO <memvar list>
| <array>
<memvar> | <array> = <expr>
-----------------------------------
Stores data to memory variable or an array.
-----------------------------------
STORE sets value of each memory variable in <memvar list> to value of
<expr>.
An alternative to STORE for storing data to memory variables and arrays
is to use the equal sign (=) as shown above. Memory variable or array
must be on the left side of the equal sign; the value to be stored must
be on the right side.
Dates can be stored directly to memory variables by using braces: STORE
{12/25/90} TO XMAS.
<expr>
Expression whose value is to be stored to each memory variable in
<memvar list> or to each element in <array>.
<memvar list>
If memory variable currently exists, STORE replaces its old value with
new value <expr>. If no memory variable currently exists with given
name, one is created and initialized to <expr>.
<array>
STORE can also be used to initialize every element of a memory variable
array to a specified value if COMPATIBLE is SET OFF. The array must be
created first to use STORE to initialize an array.
+---------------------------------+
| Examples |
+---------------------------------+
STORE DATE() TO vdate
STORE 50 TO vnum
STORE 'Hello' TO vchar
STORE .T. TO vlog
DISPLAY MEMORY LIKE v*
DECLARE x(2,2)
STORE 2 TO x
DISPLAY MEMORY LIKE x
-----------------------------------
See Also: DECLARE, DIMENSION, DISPLAY MEMORY, GATHER, SET COMPATIBLE,
SCATTER
-----------------------------------
See Also:
DECLARE
DIMENSION
DISPLAY MEMORY
GATHER
SET COMPATIBLE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson