Difference between revisions of "FILECOUNT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to count files matching pattern | Function to count files matching pattern | ||
− | |||
==Syntax== | ==Syntax== | ||
FILECOUNT(<skeleton>) | FILECOUNT(<skeleton>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADIR()]], [[IFILECOUNT()]], [[FILE()]] | + | [[ADIR()]], [[IFILECOUNT()]], [[FILE()]] |
− | + | ||
==Description== | ==Description== | ||
The FILECOUNT() function returns the number of files which match the specified pattern <skeleton>. The following 'wild card' characters can be used: | The FILECOUNT() function returns the number of files which match the specified pattern <skeleton>. The following 'wild card' characters can be used: | ||
− | + | {| class="wikitable" width="100%" | |
− | {| class="wikitable" | + | !width="30%"|Character||Description |
− | !Character||Description | + | |
|- | |- | ||
|?||Matches any one character. | |?||Matches any one character. | ||
Line 25: | Line 21: | ||
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 32: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 12:22, 1 February 2013
Contents
Purpose
Function to count files matching pattern
Syntax
FILECOUNT(<skeleton>)
See Also
Description
The FILECOUNT() function returns the number of files which match the specified pattern <skeleton>. The following 'wild card' characters can be used:
Character | Description |
---|---|
? | Matches any one character. |
% | Matches any one character. |
* | Matches zero or more characters. |
Example
nfiles = filecount("*.dbf")