Visual FoxPro and FoxPro for Windows also open files for their own internal use, and the number of these open files can vary throughout a FoxPro session. The number returned by SYS(2010) isn't the number of files you can open in Visual FoxPro, FoxPro for Windows, and FoxPro for MS-DOS. SYS(2010) returns the default MS-DOS files setting in either case. SYS(2010) returns this number.Ī Config.sys configuration file doesn't have to have a files setting furthermore, you need not have a Config.sys file.
This line usually reads FILES=NNN, where NNN is a number. Most Config.sys files contain a line specifying the maximum number of files that can be opened at the same time under MS-DOS. In Visual FoxPro, SYS(2010) always returns 255. In FoxPro for MS-DOS, SYS(2010) returns as a character string the files setting in your CONFIG.SYS configuration file.