WD6X: CountFoundFiles() Returns 0 If Over 100 Files Counted

Last reviewed: February 3, 1998
Article ID: Q118902
The information in this article applies to:
  • Microsoft Word for the Macintosh, version 6.0

SYMPTOMS

When you use the WordBasic FindFile command for a search that returns many files, the CountFoundFiles() function may return 0 even though there are a large number of matching files.

CAUSE

The CountFoundFiles() function creates a temporary file that contains a list of the files found. By design, the size of this file is limited to 100 files. If there is not enough space on your hard disk drive for the temp file, the CountFoundFiles() function returns 0, even though there may actually be, for example, 200 matching files.

NOTE: This temporary file is left on the hard disk drive until the next FileFind search. You can reduce the size of this file by performing a new FindFile search with a more limited search criteria.

WORKAROUND

Narrow your search criteria to reduce the number of files found.


Additional query words: findfile macro wordbasic countfoundfiles
Keywords : word6 kbmacro kbprg
Version : MACINTOSH:6.0
Platform : MACINTOSH
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.