TextArea.Open

From Xojo Documentation

Method

TextArea.Open(f as FolderItem) As Boolean

New in 2009r3

Supported for all project types and targets.

Opens the passed FolderItem. If successful, it returns True.

Example

This example loads the selected file into a TextArea:

Dim f As FolderItem
Dim dlg As OpenDialog

// create new openDialog
dlg = New OpenDialog

//run the openDialog
f = dlg.ShowModal

//check for user cancelling
If f <> Nil Then
//open the styledTextArea
If Not TextArea1.Open(f) Then
MsgBox("Error opening " + f.Name)
End If
End If