Xojo.IO.FolderItem.Count

From Xojo Documentation

Read-Only Property (As UInteger )
UIntegerValue = aXojo.IO.FolderItem.Count

Supported for all project types and targets.

The number of items in the FolderItem if it is a folder. If the item is not a folder then it returns 0.

Sample Code

Get the count of files in the folder:

Var f As FolderItem = SpecialFolder.Documents
Var count As Integer = f.Count