Difference between revisions of "FolderItem.Children"

From Xojo Documentation

Line 4: Line 4:
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
| parameters=followAlias as [[Boolean]]
+
| parameters=followAlias as [[Boolean]] = True
 
| returntype=[[Iterable]]
 
| returntype=[[Iterable]]
 
| platform=all
 
| platform=all

Revision as of 22:43, 26 July 2019

Method

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

New in 2019r2

Supported for all project types and targets.

Allow 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