Sharp OZ-707 Operation Manual - Page 104

Print, Lprint

Page 104 highlights

10: A = 1234: B# = 5#/9: C$ = "ABCDEFGHIJKLMNOPQR":WAIT 200 20: CLS: PRINT "A=",A 30: CLS: PRINT A,C$,B# RUN I ENTER I A= 1234 1234 ABCDEFGHIJKLMNOP QR 5.5555555555555 5>55556D-01 Format 2 displays the data continuously from the left margin of the display. Format 3 displays the data by following the specified format. Refer to the USING command for USING format. Commas (,) and semicolons (;) will be treated as usual. A USING statement can be used only once in one PRINT statement. Example: PRINT USING ANSWER=";:PRINT USING "####.##";5/9 Format 4 displays the previously displayed value as is. (Usually, it is used together with the WAIT command to retain the current display.) 10: CLS 20: FOR A=O TO 127 30: PRINT CHR$ (A+32); 40: NEXT A 50: WAIT: PRINT The characters displayed between lines 20 and 40 will remain on the display at line 50. (An infinite interval is set.) PRINT ~ LPRINT setting The Card can switch all PRINT commands to function as LPRINT commands. Connect the printer before executing the following statement: Setting: PRINT=LPRINT Resetting: PRINT=PRINT Resetting can also be performed by: • executing the RUN command, • pressing the ISHIFT II CeCE I keys, or • turning the power off and then on. Since the RUN command resets the setting, run the program using the GOTO command. 196 197

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

10: A = 1234: B# = 5#/9: C$
=
"ABCDEFGHIJKLMNOPQR":WAIT 200
20: CLS: PRINT "A=",A
30:
CLS: PRINT A,C$,B#
RUN
I
ENTER
I
A=
1234
1234
ABCDEFGHIJKLMNOP
QR
5.5555555555555
555556D-01
>
Format 2 displays the data continuously from the left margin of the
display.
Format 3 displays the data by following the specified format.
Refer to the USING command for USING format. Commas
(,)
and
semicolons
(;)
will be treated as usual. A USING statement can be
used only once
in
one PRINT statement.
Example:
PRINT USING "&&&&&&&&";"ANSWER=";:PRINT USING
"####.##";5/9
Format 4 displays the previously displayed value
as
is. (Usually, it is
used together with the WAIT command to retain the current display.)
10: CLS
20:
FOR
A=O
TO
127
30:
PRINT CHR$
(A+32);
40:
NEXT A
50: WAIT: PRINT
The characters displayed between lines 20 and 40
will
remain on the display at line 50.
(An
infinite interval is set.)
196
PRINT
~
LPRINT
setting
The Card can switch all PRINT commands to function as LPRINT
commands. Connect the printer before executing the following
statement:
Setting: PRINT=LPRINT
Resetting: PRINT=PRINT
Resetting can also
be
performed by:
• executing the
RUN
command,
• pressing the
I
SHIFT
II
CeCE
I
keys, or
• turning the power off and then on.
Since the RUN command resets the setting, run the program using the
GOTO command.
197