From Xojo Documentation

Revision as of 21:36, 3 June 2019 by Gperlman (talk | contribs)

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.


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