CTextView:GetTitle


The GetTitle method returns the window title of the CTextView window. Usually, this is used to fetch the title of a CTextView that is attached using attach_textview, attachlist_textview, or their equivalent class methods. The title can be set when the CTextView is created or when saved to a file using SaveAs.

Syntax

strTitle = CTextView:GetTitle()

bullet.gif    On success, this method returns thewindow title as a string.

bullet.gif    On failure, this method returns nil.

Example

Suppose a CTextView T exists. The following script returns its title:

strTitle = T:GetTitle()

-- get the window title

if strTitle then

-- if strTitle is not returned as nil

  Printf("Window title = %s\n", strTitle )

-- print the window title

end

 

Related Topics

CTextView, SaveAs, attach_textview, attachlist_textview


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