BUG: FILES$(1) Fails in Interpreter on Mac II, IIcx, SE/30 (47662)






This article was previously published under Q47662

SYMPTOMS

Normally the FILES$(1) function displays all files of type TEXT and APPL. However, the FILES$(1) function fails to display any files (only folders display) in the QuickBasic version 1.0 or 1.0a interpreter (environment) on the Macintosh II, Macintosh IIci, Macintosh IIcx, and Macintosh SE/30 when running under the Finder.

The FILES$(1) function works correctly on the Macintosh II, IIci, IIcx, and SE/30 in the interpreter under MultiFinder.

FILES$(1) works correctly on a Macintosh Plus or normal Macintosh SE, or in QuickBasic compiled programs (on Finder or MultiFinder).

Microsoft has confirmed this problem in Microsoft QuickBasic versions 1.0 and 1.0a for the Macintosh . This problem is corrected in QuickBasic binary math (b) version 1.0b. However, the problem still occurs on a Macintosh IIci in QuickBasic decimal math (d) version 1.0b.

To work around this problem in 1.0 or 1.0a, or in the 1.0b decimal math interpreter, invoke FILES$(1,"TEXTAPPL") instead of FILES$(1) to allow selection of file types TEXT and APPL. For example:
   X$ = FILES$(1,"TEXTAPPL")
   PRINT X$
				
You can also invoke either FILES$(1,"TEXT") to allow the user to select just TEXT files, or FILES$(1,"APPL") to select just APPL files.

Note: The prompt string (second argument of FILES$) is case sensitive. "TEXT" and "APPL" must be all uppercase.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: kbbug KB47662