docs

Home All functions Categories

vuFileCount(Mask)

vuFileCount(*CSTRING), Long

Description

Counts the number of files that match the specified mask. Wildcards are supported. Unlike Clarions built-in EXISTS() function, vuFileCount does not affect file creation, last written, or access dates.

Parameters

Parameter Data Type Description
Mask CSTRING(256) Fully qualified path and filename (wildcards allowed, e.g. *.bak)

Returns

LONG containing the total number of files that match the mask.

Example

Mask = 'C:\Temp\Valutilities.bak'
MESSAGE('Count = ' & vuFileCount(Mask))   ! Returns 1 if file exists, otherwise 0

Mask = 'C:\Temp\*.bak'
MESSAGE('Count = ' & vuFileCount(Mask))   ! Returns number of .bak files in C:\Temp

Notes

Home All functions Categories