ECHO: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_ECHO}} The _ECHO statement allows outputting text to a $CONSOLE window without having to alternate between _DEST pages. {{PageSyntax}} : _ECHO {''"text to output"'' | {{Parameter|textVariable$}}} {{PageDescription}} * _ECHO is a shorthand to saving current _DEST, switching to _DEST _CONSOLE, PRINTing, then switching back to the previous _DEST. * To output numbers, use the STR$ function. ==Availability== *...") |
No edit summary |
||
Line 12: | Line 12: | ||
{{PageAvailability}} | |||
* ''' | * '''QB64 1.3 and up''' (QB64 Team) | ||
* '''QBPE 0.5 and up''' (QB64 Phoenix Edition) | |||
Revision as of 23:11, 29 April 2022
The _ECHO statement allows outputting text to a $CONSOLE window without having to alternate between _DEST pages.
Syntax
- _ECHO {"text to output" | textVariable$}
Description
- _ECHO is a shorthand to saving current _DEST, switching to _DEST _CONSOLE, PRINTing, then switching back to the previous _DEST.
- To output numbers, use the STR$ function.
Availability
- QB64 1.3 and up (QB64 Team)
- QBPE 0.5 and up (QB64 Phoenix Edition)
Examples
$CONSOLE PRINT "this will show in the main window" _ECHO "this will show in the console" |
See also