FolderItem.Constructor(path as String)

From Xojo Documentation

Revision as of 13:42, 23 May 2013 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
FolderItem.Constructor(path as String[, PathType as Integer=PathTypeAbsolute])

Creates a new FolderItem. When you create a FolderItem with the New command, you can pass the full or relative path to the new FolderItem as an optional parameter.


The following example looks for a file at a specific path on Windows:

Dim f As FolderItem
f = New FolderItem("c:\Temp\MyDoc.txt", FolderItem.PathTypeNative)