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

WinTitle

Sets the title of the active window.

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

Syntax

WinTitle(sTitle)

sTitle:

The new title for the window.

Return Value

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

Related Functions

WinNew, GetWinTitle

Example

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

See Also

Window Functions