Tandy 1000 Basic Reference Manual page 114

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
CHR$
Function
CHR$(code)
Returns the character corresponding to a n ASCII or control code.
Code
is any ASCII or control code.
CHR$
is the inverse of the ASC function and is commonly used
to send a special character
to the display.
See Appendix B for a list of ASCII codes.
Example
prints the character corresponding to ASCII code 35, which is
#.
P R I N T C H R $ < 3 5 )
Sample Program
The following program lets you investigate the effect of printing
ASCII codes on the display.
1 0 0 C L S
1 1 0 I N P U T " T Y P E
I N THE CODE";
C
1 2 0 P R I N T " C H R $ < C O D E ) = " ; C H R $ ( C )
1 3 0 G O T 0 1 1 0
112

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents