Ratio: 0 / 5

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

MEMVAR

Declares private and public variables and arrays.
Syntax
MEMVAR <xVar>
Argument(s)
<xVar> Memory variable Name
Description
This command tells the compiler to resolve any reference to a memory variable designated within this list s if it possessed an explicit memory variable alias with either the M-> or MEMVAR-> prefix.Only those memory variables that do not contain any such explicit are affected by this command. Those memory variabls within macro expansions are not affected by this command.
The MEMVAR declaration must apear before any executable commands;it is similat to the LOCAL, STATIC, FIELD, PARAMETERS, FUNCTION, and PROCEDURE commands statements.
Example(s)
MEMVAR y AS NUMERIC
PROCEDURE Main()
   LOCAL n, lVar
   n := iif( lVar, "A", 3 )
   n := 2
   n := "a"
   n := Seconds() + 2
   n := Int( Seconds() + 2 )
   y := n
   ? y
   RETURN
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
Platform(s)
This is available on all platforms
File(s)
None.
See also

LOCAL, STATIC, FIELD, PRIVATE, PUBLIC