window_name

Gets/Sets the name of the currently active window.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

string window_name([title])
string              title

Description

title (optional) specifies the current window's new title. It is ignored in the character based version.

Example

Logs user errors that occur including the window name:
error_trap({ g.msg = parm.0);
             log("logfile",window_name() ^^ ":" ^^ g.msg;
             bell();
           });