Microsoft KB Archive/47662
Article ID: 47662
Article Last Modified on 11/21/2006
This article was previously published under Q47662
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.
Additional query words: MQuickB
Keywords: kbbug KB47662