You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _build/reference/535-console-print.markdown
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,38 @@
4
4
5
5
Display text or the value of an expression.
6
6
7
+
**PRINT SEPARATORS**
7
8
8
-
*PRINT SEPARATORS*
9
9
------- -----------------------------------------
10
10
TAB(n) Moves cursor position to the nth column.
11
11
SPC(n) Prints a number of spaces specified by n.
12
12
; Carriage return/line feed suppressed after printing.
13
13
, Carriage return/line feed suppressed after printing.
14
14
------- -----------------------------------------
15
-
*PRINT USING*
15
+
16
+
**PRINT USING**
17
+
16
18
Print USING uses the FORMAT() function to display numbers and strings. Unlike FORMAT it can also include literals.
19
+
17
20
*[_] - Print next character as a literal. The combination _#, for example, allows you to include a number sign as a literal in your numeric format.
18
21
*[other] Characters other than the foregoing may be included as literals in the format string.
19
-
p.. When a PRINT USING command is executed the format will remains on the memory until a new format is passed. Calling a PRINT USING without a new format specified the PRINT will use the format of previous call.
20
-
> PRINT USING "##: #,###,##0.00";
22
+
23
+
When a PRINT USING command is executed the format will remains on the memory until a new format is passed. Calling a PRINT USING without a new format specified the PRINT will use the format of previous call.
24
+
25
+
```
26
+
PRINT USING "##: #,###,##0.00";
21
27
FOR i=0 TO 20
22
28
PRINT USING; i+1, A(i)
23
29
NEXT
24
30
....
25
31
PRINT USING "Total ###,##0 of \\ \\"; number, "bytes"
32
+
```
33
+
26
34
The symbol ? can be used instead of keyword PRINT You can use 'USG' instead of 'USING'.
27
35
28
-
quote: It's all in the punctuation at the end of a print statement>
36
+
quote: **It's all in the punctuation at the end of a print statement**
29
37
30
38
~~~
31
-
32
39
REM 3 ways to print hello five time.bas 2016-03-05 SmallBASIC 0.12.2 [B+=MGA]
33
40
'It's all in the punctuation at the end of a print statement
34
41
'1) no punctiation = whole print lines CR=carriage return and LF=line feed, ready to go on next line
Copy file name to clipboardExpand all lines: _build/reference/686-language-on.markdown
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
5
5
Causes a branch to one of a list of labels.
6
6
7
-
8
-
p.. A numeric expression in the range 0 to 255. Upon execution of the ON...GOTO command (or ON...GOSUB), BASIC branches to the nth item in the list of labels that follows the keyword GOTO (or GOSUB).
7
+
A numeric expression in the range 0 to 255. Upon execution of the ON...GOTO command (or ON...GOSUB), BASIC branches to the nth item in the list of labels that follows the keyword GOTO (or GOSUB).
0 commit comments