EasyManua.ls Logo

Husky Hunter - Page 181

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION 5.4
5.4.3
CHR$
Function CHR$ performs the inverse of ASC, It returns the single
character string specified by the value of N, which may be
an expression,
Syntax
CHR$(N)
where the result of N is between O and 255.
Examples 10 DIM A$(10, 10)
20 A$= CHR$(34):REM (see note below)
30 PRINT "HE SAID,";A$;"HELLO";A$
40
B:7
50 PRUIT CHR$(B): REM BEEP
60 PRINT CHR$(1):REM THIS CLEARS THE SCREEN
The above will print:
HE SAID, "HELLO"
then bleep, and then clear the screen,
Remarks The expression must have the value O to 255. The
expression must be enclosed in parentheses.
NOTE: (The character " cannot be embedded in PRINT strings since
it acts as a delimiter),
'ER. V09F
PAGE 5 - 12