mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
32 lines
745 B
Text
32 lines
745 B
Text
{{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]], [[PRINT]]ing, then switching back to the previous [[_DEST]].
|
|
* To output numbers, use the [[STR$]] function.
|
|
|
|
|
|
{{PageAvailability}}
|
|
* Version 1.3 and up.
|
|
|
|
|
|
{{PageExamples}}
|
|
{{CodeStart}}
|
|
{{Cl|$CONSOLE}}
|
|
{{Cl|PRINT}} "this will show in the main window"
|
|
{{Cl|_ECHO}} "this will show in the console"
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_DEST]]
|
|
* [[$CONSOLE]], [[_CONSOLE]]
|
|
* [[STR$]]
|
|
|
|
|
|
{{PageNavigation}}
|