window.setTitle

Syntax window.setTitle (name, title)

Params name is the name of a window, or the address of a database object.

title is a string containing the new title for the window.

Action Sets the title of the specified window.

Returns True if the window is open and the title is set, false otherwise.

Examples window.setTitle (@notepad, user.name + "'s Notepad")

   » true

window.setTitle ("scratchpad", "Scratch Area")

   » false

The scratchpad window is not currently open.

Notes The title that is set for a window remains in effect as long as the window is open. When a window is closed and re-open, its default title is re-established.

See Also window.getTitle

Discuss