Microsoft KB Archive/112474

{| = PRB: MEMORY and MEMORY(0) Don't Return Same Value =
 * width="100%"|

ID: Q112474

The information in this article applies to:

- Microsoft FoxPro for Windows, versions 2.6 - Microsoft FoxPro for MS-DOS, versions 2.6

SYMPTOMS
The MEMORY and MEMORY(0) functions do not return the same value in Microsoft FoxPro version 2.6. However, these functions do return the same value in dBASE.

NOTE: The return values are not affected by the setting of COMPATIBLE.

MORE INFORMATION
In dBASE IV, both MEMORY and MEMORY(0) return the amount of available RAM on the system. In FoxPro, MEMORY returns the amount of memory below 640K that is available to RUN an external program. This is similar to the SYS(12) function in FoxPro. There is no true equivalent in FoxPro for the dBASE functions.

Steps to Reproduce Behavior
Type the following lines in the Command window:

SET COMPATIBLE ON  ?MEMORY=MEMORY(0)   && This displays the value .F. Additional reference words: FoxDos FoxWin 2.60 KBCategory: kbprg kbprb KBSubcategory: FxinteropDbase
 * }