Sharp OZ-707 Operation Manual - Page 58
quo~es, chara~~e
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
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