_CONSOLETITLE

From QB64 Phoenix Edition Wiki
Revision as of 04:24, 19 April 2022 by SMcNeill (talk | contribs) (Created page with "{{DISPLAYTITLE:_CONSOLETITLE}} The _CONSOLETITLE statement creates the title of the console window using a literal or variable string. {{PageSyntax}} : _CONSOLETITLE {{Parameter|text$}} {{PageDescription}} * The ''text$'' used can be a literal or variable STRING value. {{PageExamples}} ''Example:'' Hiding the main program window while displaying the console window with a title. {{CodeStart}} '' '' {{Cl|$SCREENHIDE}} {{Cl|_DELAY}} 4 {{Cl|$CONS...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _CONSOLETITLE statement creates the title of the console window using a literal or variable string.


Syntax

_CONSOLETITLE text$


Description

  • The text$ used can be a literal or variable STRING value.


Examples

Example: Hiding the main program window while displaying the console window with a title.

  
$SCREENHIDE
_DELAY 4
$CONSOLE
_CONSOLETITLE "Error Log"

_DEST _CONSOLE
PRINT "Errors go here! (fyi, this line is not an error)"
END
Note: You can also use SHELL "title consoletitle" to set the title of the console window. However, the recommended practice is to use _CONSOLETITLE.


See also:



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link