FolderItem.TrueChild

From Xojo Documentation

Revision as of 15:10, 24 February 2018 by Npalardy (talk | contribs)
Method

FolderItem.TrueChild(Name as String) As FolderItem

Supported for all project types and targets.

If PathName is a directory, TrueChild returns a FolderItem object for the directory with the name passed. TrueChild returns the actual FolderItem, even if it is an alias.

Example

This example gets the actual FolderItem of the passed item.

Dim path As String
Dim f, g As FolderItem
f = New FolderItem
g = f.GetRelative(f.GetSaveInfo(Volume(0).TrueChild("Documents"), 0))
If g <> Nil Then
path = g.NativePath
End If