Sharp OZ-707 Operation Manual - Page 58

quo~es, chara~~e

Page 58 highlights

p ASC o FORMA T: {"string" } ASC string variable Abbreviation: A. See Also: CHR$ PURPOSE: . . . d t' Returns the character code for the first character In the speclfle s ring. ~::::~!:string as the contents of a string variable in the form X$ or as an actual string enclosed in quo~es, ."XXXX". Only the chara~~e~ for code of the first character in the string IS returned. See Append character code tables. EXAMPLE: 10: INPUT "ENTER A CHARACTER ";A$ 20: N = ASC A$ IS .. N 30: PRINT "THE CHARACTER CODE ; 40: GOTO 10 [10} The user presses a key to enter a character. [20] ASC finds the code number for the character. [30} [40} The answer is displayed. Repeats until the user halts the program by . presslrlg the I~ n i i I k ey. AUTO o FORMAT: AUTO [[starting line number][,increment]] IENTER I Abbreviation: See Also: PURPOSE: Provides automatic insertion of program line numbers in the PRO mode. REMARKS: Valid only as direct input in the PRO mode. Starting line number and incremental value may be specified. If not specified, the first line number is automatically set to 10 and the increment to 10. However, if the AUTO command has been previously set to other values, those values are used. An error is generated if the starting line number exceeds 65279. When the mode is changed from PRO to RUN and then back to PRO mode, entering AUTO IENTER I assumes the previously set increment and resumes line numbering from the most recently generated line number. Pressing the IC-CE I key while a line number is displayed will have the same effect. Turning the power off and then on, or entering an operation mode other than PRO or RUN will exit the AUTO mode. 105 104

  • 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

ASC
FORMA
T:
{"string"
}
ASC string variable
Abbreviation:
A.
See
Also:
CHR$
p
o
PURPOSE:
.
. .
d
t'
Returns the character code for the first character
In
the speclfle s ring.
~::::~!:
string as the contents of a string variable in the form
X$
or
as an actual string enclosed
in
quo~es,
."XXXX". Only the
chara~~e~
for
code of the first character in the string
IS
returned. See Append
character code tables.
EXAMPLE:
10: INPUT "ENTER A CHARACTER "
;A$
20: N
=
ASC
A$
IS
..
N
30: PRINT
"THE
CHARACTER
CODE
;
40: GOTO
10
[10} The user presses a key
to
enter a character.
[20] ASC finds the code number for the character.
[30} The answer
is
displayed.
.
IniiI
k
[40} Repeats until the user halts the program by presslrlg the
~
ey.
104
AUTO
o
FORMAT:
AUTO [[starting line number][,increment]]
I
ENTER
I
Abbreviation:
See
Also:
PURPOSE:
Provides automatic insertion of program line numbers in the PRO mode.
REMARKS:
Valid only as direct input in the PRO mode.
St
arting line number and incremental value may be specified.
If not specified, the first line number
is
automatically set to
10
and the
in
crement to
10.
However, if the AUTO command has been previously
set
to
other values, those values are used.
An
error is generated if the starting line number exceeds 65279.
When the mode
is
changed from PRO
to
RUN and then back to PRO
mode, entering AUTO
I
ENTER
I
assumes the previously set increment
a
nd
resumes line numbering from the most recently generated line
nu
mber.
P
re
ssing the
I
C-CE
I
key while a line number is displayed will have the
same effect.
Tu
rn
i
ng
the power off and then on, or entering
an
operation mode
o
th
er than PRO or
RUN
will exit the AUTO mode.
105