From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!


TextArea.Save(f As FolderItem,SaveAsStyled as Boolean) As Boolean

New in 2009r3

Supported for all project types and targets.

Saves the contents of the TextArea to the passed FolderItem. If the save was successful, it returns True.


If SaveAsStyled is True, then the style information is saved. The default is True.

This method is not available on Cocoa.


This example saves the contents of the TextArea:

Dim f As FolderItem
Dim dlg As SaveAsDialog

//create a new SaveAsDialog
dlg = New SaveAsDialog
//Run it
f = dlg.ShowModal

//check to see if the user clicked cancel
If f <> Nil Then
//save the TextArea
Call TextArea1.Save(f, True)
End If