CTextView:SaveAs
The SaveAs method saves the contents of the CTextView window to a new file or path as specified in a File Save dialog. After saving, the new file name is displayed in the window title. To save to the same file name and path, use Save.
bResult = CTextView:SaveAs() bResult = CTextView:SaveAs( strNewFileName ) |
where strNewFileName is the default name to show in the File Save dialog. If omitted, the dialog opens with no name.
On success, this method returns bResult = true.
On failure, this method returns false.
Suppose a CTextView T exists. The following script saves its contents to a new path and file name:
|
-- opens a File Save dialog and saves the text |
|
-- if not saved, then... |
|
-- error message |
|
|
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.