Sys(3050)
This obscurely named function lets you specify how much memory Visual FoxPro can grab. It has separate settings for foreground memory (when VFP's in control) and background memory (when you leave VFP running while you do something else). The function can also tell you the current settings.
Usage |
cMemoryInBytes = SYS(3050, nType [, nMemoryInBytes ] ) |
Parameter |
Value |
Meaning |
nType |
1 |
Inquire about or change foreground memory. |
2 |
Inquire about or change background memory. |
|
nMemoryInBytes |
0 |
Reset to startup value for your system. |
Positive number |
Round down to nearest 256K and allow VFP to use that much memory. |
|
cMemoryInBytes |
String of digits |
The actual amount of memory VFP can use. |
Example |
? SYS(3050,1,2000000) && Returns 1835008, much too little ? VAL(SYS(3050,1))/1024^2 && Returns 1.75 Mb |
See Also |