FolderItem.Children

From Xojo Documentation

Revision as of 14:36, 15 December 2020 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

FolderItem.Children(followAlias As Boolean = True) As Iterable

New in 2019r2

Supported for all project types and targets.

Allows you to iterate through all the files in a folder.

Examples

This example adds the names of all the files on the desktop to a listbox:

Var desktopFiles As FolderItem = SpecialFolder.Desktop
For Each file As FolderItem In DesktopFiles.Children
Listbox1.AddRow(file.Name)
Next