Difference between revisions of "FILECOUNT()"

From Lianjapedia
Jump to: navigation, search
 
 
(4 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()]], [[MENU FILES]]
+
[[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>
  
 
==Products==
 
Recital Server, Recital
 
 
[[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

Purpose

Function to count files matching pattern

Syntax

FILECOUNT(<skeleton>)

See Also

ADIR(), IFILECOUNT(), FILE()

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")