Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CHR$ returns an ASCII character corresponding to the specified character code

Syntax

CHR$(CharCode%)

Arguments 

  • CharCode% is % is a numerical expression of the integer type. The normal range for CharCode is 0 – 255.

Remarks

  1. The required CharCode argument should be a integer that identifies a character.
  2. Numbers from 0 – 31 are the same as standard, nonprintable ASCII codes.

...

Chr$(13) + Chr$(10)

returns a carriage return linefeed character (a "hard" enter in MSWord, see Wikipedia: [CRLF])


 

Wikipedia: [ASCII]

Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview