Character Constant - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

2. Character constant
Characters enclosed in quotation marks (n w) within 255
characters.
Examples
>10 A$ = "SANYO "
>20 B$ = "MBC-SERIES"
>30 PRINT A$;B$
>40 END
>RUN
SANYO MBC-SERIES
The double quotation marks (" ") cannot be used within
a string constant.
Example
>10 C$ = ""SANYO-MBC SERIES""
>20 PRINT C$
>RUN
Syntax error in 10
Quotation marks may be printed by using the CHR$(34)
symbol.
Example
>10 C$ = "SANYO-MBC SERIES"
>20 PRINT CHR$(310; C$; CHR$(34)
>RUN
"SANYO-MBC SERIES"
3-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents