Futurebasic/Language/Reference/chrstring

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Function

[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax

[edit | edit source]
character$ = CHR$(expr)

Description

[edit | edit source]

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

[edit | edit source]
PRINT CHR$(65); CHR$(66); CHR$(67)

program output:
ABC

CD Example: CHR$ Demo.BAS

See Also

[edit | edit source]

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

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

Language Reference