Sets the foreground or background buffer memory size.
Syntax
SYS(3050, nType, [nBuffMemSize])
Returns
Character
Arguments
nType
Specifies the buffer. The following table lists the values for nType and the corresponding buffer:
nType | Buffer |
1 | Foreground |
2 | Background |
nBuffMemSize
Specifies the maximum buffer memory size in bytes. If you specify a value for nBuffMemSize that is less than 256K bytes, Visual FoxPro sets the buffer memory size to 256K bytes.
Specify 0 for nBuffMemSize to return the buffer memory size to the Visual FoxPro startup value. The startup value depends on the amount of your computer's memory. If you omit nBuffMemSize, SYS(3050) returns the buffer memory size for the buffer specified with nType.
Remarks
SYS(3050) allows you to optimize Visual FoxPro performance by adjusting the amount of memory Visual FoxPro allocates for the foreground and background buffers. The foreground memory buffer is the memory available to Visual FoxPro when it is operating in the foreground as the currently active application. The background memory buffer is the memory available to Visual FoxPro when it is operating in the background when another application is the foreground application.
SYS(3050) returns a numeric value as a character string that indicates the maximum amount of memory Visual FoxPro allocates for the foreground or background buffers.