The information in this article applies to:
SUMMARYThere is no function available in Visual FoxPro for the Macintosh that provides information on the amount of physical RAM on the machine. However, the Ram selector of the FxGestalt()function in the FoxTools.cfm library provides information on the amount of physical RAM installed on a machine. MORE INFORMATION
The following code example returns the amount of physical RAM installed on
the machine. The function ignores any virtual memory. This code returns an
integer indicating the amount of physical RAM.
Notice a space exists after the "Ram" selector in the FxGestalt function.
Omitting this space causes the function to fail and return a -1.
All the selectors of the FxGestalt function are four letters long. The Help file states this fact in the Syntax section. The example in the FoxTools Help file, however, is not quite clear on this point. Since the space character is not easily seen in the example, it is easy to overlook it. REFERENCESFoxTools Help file located in the Microsoft Visual FoxPro:Tools folder Additional query words:
Keywords : kbMAC kbVFp FxprgFoxtools |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |