>I want to find out how much RAM is available, while in a VFP Application. MEMORY(), which is supposed to return this figure, always returns 640. Is there any way I can detect this?
Yes, it's an API function GlobalMemoryStatus. You can find a sample at
http://www.news2news.com/vfp/?example=20&function=25