PRB: MEMORY() and MEMORY(0) Don't Return Same Value

Last reviewed: June 28, 1995
Article 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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 28, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.