Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>store</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
STORE


Syntax:     STORE <exp> TO <memvar list>
            <memvar> = <exp>

Purpose:    To initialize and/or assign a value to one or more memory
            variables.

Arguments:  <exp> is a value of any data type assigned to the target
            memory variable(s).

            <memvar list> are the memory variables to initialize
            and/or assign values.  Memory variable names can be up to 10
            characters in length and may contain letters, numbers, and
            underscores (_).  The first character, however, must be a
            letter.

Usage:      STORE both creates and assigns values to memory variables.
            Unlike other languages, there is no type declaration
            necessary.  Clipper automatically assigns the data type
            based on the resulting value of the expression before the
            value is stored.  The scope of a memory variable is private
            unless it is explicitly declared PUBLIC prior to
            initialization.  A private memory variable is released when
            the procedure where it is initialized terminates with a
            RETURN.  RELEASE, CLEAR MEMORY, and CLEAR ALL also release
            memory variables.

            Naming: Fields and memory variables can have the same
            name.  When there is a name conflict, field names take
            precedence unless the memory variable is identified with the
            memory variable alias M-><memvar> or you have compiled with
            the (-v) switch.  The (-v) switch changes this so that all
            references to variable identifiers specified without an
            alias refer to memory variables.  All references to fields,
            therefore, must be preceded by an alias identifier.

            Maximum number: In Clipper, the maximum number of memory
            variables that can exist at one time is 2048.  Arrays,
            however, count only as one memory variable, each containing
            up to 4096 elements--memory permitting.

            Memo fields: Assigning a memo field to a memory variable
            creates a memory variable of character type.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   STORE "string" TO var1, var2, var3
   var1 = "string2"
   var2 = M->var1


See Also: CLEAR MEMORY PRIVATE PUBLIC RELEASE RESTORE SAVE

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson