Difference between revisions of "83Plus:Basic:Graphics:Output("
From WikiTI
(→Comments: +bit about leaving out terminating ") |
(Cleaned up formatting to match template) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
'''Token size:''' 1 byte | '''Token size:''' 1 byte | ||
− | '''Syntax:''' Output( | + | '''Syntax:''' Output(''row'',''col'',''value'') |
− | Displays a value or text on the homescreen, at position | + | Displays a value or text on the homescreen, at the position specified by ''row'' and ''col''. |
== Outputs: == | == Outputs: == | ||
− | '' | + | ''value'' will be displayed at (''col'', ''row''), where ''row'' is an integer value from 1-8, and ''col'' is an integer value from 1-16. |
− | + | ''value'' can be a string, a list, a variable, or a matrix. If the contents of ''value'' doesn't fit on the current line, it will start at the beginning of the next line, unless it already is at the bottom of the screen. | |
== Comments == | == Comments == | ||
Line 19: | Line 19: | ||
*The double quote (") cannot be displayed with Output, as it always is treated as a string deliminer. | *The double quote (") cannot be displayed with Output, as it always is treated as a string deliminer. | ||
*The ending parenthesis ) isn't needed, and can be left out to save a byte. | *The ending parenthesis ) isn't needed, and can be left out to save a byte. | ||
− | *As always when | + | *As always when working with a string, the ending quote " isn't needed if nothing else is to follow before a newline, and can be left out to save a byte. |
+ | *Does not affect where the next [[83Plus:Basic:Graphics:Disp|Disp]] command puts text | ||
== Example == | == Example == | ||
:Output(1,1,"wikiTI rocks | :Output(1,1,"wikiTI rocks | ||
+ | :3->A | ||
:Output(2,1,A | :Output(2,1,A | ||
== See also: == | == See also: == | ||
+ | [[83Plus:Basic:Graphics:Disp|Disp]] |
Latest revision as of 15:05, 16 September 2006
Contents
Synopsis
Token size: 1 byte
Syntax: Output(row,col,value)
Displays a value or text on the homescreen, at the position specified by row and col.
Outputs:
value will be displayed at (col, row), where row is an integer value from 1-8, and col is an integer value from 1-16.
value can be a string, a list, a variable, or a matrix. If the contents of value doesn't fit on the current line, it will start at the beginning of the next line, unless it already is at the bottom of the screen.
Comments
- STO (->) cannot be displayed in a string with Output.
- The double quote (") cannot be displayed with Output, as it always is treated as a string deliminer.
- The ending parenthesis ) isn't needed, and can be left out to save a byte.
- As always when working with a string, the ending quote " isn't needed if nothing else is to follow before a newline, and can be left out to save a byte.
- Does not affect where the next Disp command puts text
Example
:Output(1,1,"wikiTI rocks :3->A :Output(2,1,A