Skip to main content

CHR

Syntax

CHR( expression )

Description

CHR returns a single byte string containing the character represented by the ASCII code passed to it. For example, CHR(97) returns "a".

Example

PRINT "the character represented by the ASCII code of 97 is:"; CHR(97)

Differences from other BASICs

  • does not exist in PBASIC
  • same function exists in Visual BASIC

See also