> PUBLIC ARRAY myArray[300000]
> In VFP 9.0 no errors, in VFP8.0 error. They increased the limit.
> WAW, I can have as large an array as the physical available RAM size?
Hmmm...
Allright, then! I obtained programmatically the size of the physically available RAM on a 512 MB RAM machine (it was 340+ Mb at the moment). When I issued
lnRecs = lnPhysMem / lnRecLen
LOCAL ARRAY laMyArray[lnRecs, lnFldsCount]
I just heard the HDD started spinning and saw its LED lit red. Apparently, it was using virtual memory. Only when I "allocated" just 10% of lnPhysRAM for the array, it went by without using virtual RAM on local HDD.
Regards,
Ilya