You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 15
Next »
CHR$ returns an ASCII character corresponding to the specified character code
Syntax
CHR$(%)
Arguments
- % is a numerical expression of the integer type. The normal range for CharCode is 0 – 255.
- The required argument should be a that identifies a character.
- Numbers from 0 – 31 are the same as standard, nonprintable ASCII codes.
Examples
Chr$(10)
returns a linefeed character.
Chr$(13) + Chr$(10)
returns a carriage return linefeed character (a "hard" enter in MSWord, see Wikipedia: [CRLF])
Wikipedia: [ASCII]
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview