< Futurebasic < Language < Reference

Chr$

Function

✔ Appearance ✔ Standard ✔ Console

Syntax

character$ = CHR$(expr)

Description

Returns a 1-character string consisting of the character whose ASCII code is given by expr MOD 256. ASCII (which stands for American Standard Code for Information Interchange) is a system of codes for characters used on microcomputers.

Example

PRINT CHR$(65); CHR$(66); CHR$(67)

program output:
ABC

CD Example: CHR$ Demo.BAS

See Also

ASC; STRING$; SPACE$; Appendix F: ASCII Character Codes

ASC; STRING$; SPACE$; Appendix F: ASCII Character Codes

Language Reference

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.