WD6X: CountFoundFiles() Returns 0 If Over 100 Files CountedLast reviewed: February 3, 1998Article ID: Q118902 |
The information in this article applies to:
SYMPTOMSWhen 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.
CAUSEThe 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.
WORKAROUNDNarrow your search criteria to reduce the number of files found.
|
Additional query words: findfile macro wordbasic countfoundfiles
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |