CONSOLETITLE: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 40: Line 40:
{{PreStart}}
{{PreStart}}
'''Note:'''
'''Note:'''
  You can also use [[SHELL]] "title consoletitle" to set the title of the console
  You can also use [[SHELL]] "title consoletitle" to set the title of the
  window. However, '''the recommended practice is to use [[_CONSOLETITLE]]'''.
  console window. However, recommended is to use '''_CONSOLETITLE'''.
{{PreEnd}}
{{PreEnd}}



Latest revision as of 17:55, 6 October 2024

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


Syntax

_CONSOLETITLE text$


Description


Availability


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, recommended is to use _CONSOLETITLE.


See also



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