TextArea.Save

From Xojo Documentation


Method

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.

Notes

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

This method is not available on Cocoa.

Example

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