MEMORY( ) Function

Returns the amount of memory available to run an external program.

MEMORY( )

Return Values

Numeric

Remarks

In Visual FoxPro, MEMORY( ) always returns 640.

MEMORY( ) is similar to SYS(12), with two exceptions:

  • MEMORY( ) returns the amount of available memory in kilobytes; SYS(12) returns the amount of memory in bytes.
  • MEMORY( ) returns a numeric expression. SYS(12) returns its value as a character string.

See Also

SYS(12) - Available Memory in Bytes | SYS(1001) - Visual FoxPro Memory