CTextView:Save


The Save method saves the contents of the CTextView window to the file name in the window title. To save to a different file name or path, use SaveAs.

Syntax

bResult = CTextView:Save()

bullet.gif    On success, this method returns bResult = true.

bullet.gif    On failure, this method returns false.

Example

Suppose a CTextView T exists. The following script saves its contents to its original path:

bSuccess = T:Save()

-- save the text to a file

if not bSuccess then

-- if not saved, then...

  Printf("Window text can't be saved\n" )

-- error message

end

 

Related Topics

CTextView, SaveAs


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.