Condividi tramite


_CALCMEM System Variable

Contains the numeric value that Microsoft Visual FoxPro stores in the Calculator's memory.

_CALCMEM = nCalculatorValue

Parameters

  • nCalculatorValue
    Specifies the numeric value that _CALCMEM stores in memory.

Remarks

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.

Example

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)

See Also

ACTIVATE WINDOW | _CALCVALUE | STORE | CALCULATE Command