MEMVAR
Declares private and public variables and arrays.
- Syntax
-
- MEMVAR <xVar>
- Arguments
-
- <xVar> Memory variable Name
- Returns
-
- None.
- 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.
Examples
MEMVAR y As Numeric
Function Main2()
Local n , lVar
n := IIF( lVar, 'A', 3 )
n := 2
n := 'a'
n := seconds() + 2
n := int( seconds() + 2 )
y := n
? y
Return( NIL )
Tests
See Tests/testwarn.prg for more examples
- Status
- Ready
- Compliance
-
- This command works exactaly as CA-Clipper.
- Platforms
-
- All
- Files
-
- None.
- See Also