Difference between revisions of "FolderItem.TrueChild"

From Xojo Documentation

Line 1: Line 1:
| name=TrueChild
| name=TrueChild

Revision as of 21:15, 30 September 2019


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