FolderItem.Constructor(f as FolderItem)

From Xojo Documentation

Constructor
FolderItem.Constructor(f as FolderItem)

Creates a new FolderItem. You can create a copy of a FolderItem by passing the FolderItem to be copied to the constructor. The result is a copy of the passed FolderItem rather than a reference to it.

Example

For example:

Var f, f2 As FolderItem
f = SpecialFolder.Desktop.Child("MyDocument")
f2 = New FolderItem(f)


If you pass a Nil FolderItem, you will raise a NilObjectException.