Difference between revisions of "FolderItem.TrueChild"

From Xojo Documentation

m
Line 1: Line 1:
{{Deprecated|version=2019r2|replacement=[[Folderitem.Child]]}}
+
{{Deprecated|version=2019r2|replacement=[[FolderItem.Child]]}}
 
{{MethodBox
 
{{MethodBox
 
| name=TrueChild
 
| name=TrueChild

Revision as of 21:15, 30 September 2019

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