_CALCMEM System Variable
Contains the numeric value that Microsoft Visual FoxPro stores in the Calculator's memory.
Specifies the numeric value that _CALCMEM stores in memory.
You can save the result of a calculation in the Calculator's memory and return the result to a program, or you can place a specific value in the Calculator's memory before using the Calculator.
To initialize the Calculator's memory, store a numeric value to _CALCMEM with STORE or the = assignment operator. When you use the Calculator, its memory contains the value you specified.
The following program example stores the numeric constant 1234 to _CALCMEM. The program then displays the Calculator and stuffs the keyboard with the letter R. The keystroke R displays the value stored in the Calculator's memory.
STORE 1234 TO _CALCMEM ACTIVATE WINDOW calculator CLEAR TYPEAHEAD KEYBOARD CHR(82)