Cicode Programming Reference > Cicode Function Categories > Window Functions > WinTitle

WinTitle

Sets the title of the active window.

If a window title has been set with the [Page]WinTitle parameter, Citect SCADA uses this title when it refreshes the page (overriding the window title set with the WinTitle() function). To minimize the likelihood of Citect SCADA from overriding the title, set the parameter [Page]WinTitle to *.

Note: This function does not work with pinned windows.

Syntax

WinTitle(sTitle)

sTitle:

The new title for the window.

Return Value

0 (zero) if successful, otherwise an error code is returned.

Related Functions

WinNew, GetWinTitle

Example

WinTitle(Time()+" "+Date());
! Places the current time and date into the window title.

See Also

Window Functions

Published June 2018