◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
ASC returns the ASCII code for the first character in a string expression.
CHR$ returns the character corresponding to a specified ASCII code.
ASC(stringexpression$)
CHR$(ascii-code%)
■ stringexpression$ Any string expression.
■ ascii-code% The ASCII code of the desired character.
Example:
PRINT ASC("Q") 'Output is: 81
PRINT CHR$(65) 'Output is: A
See Also ◄ASCII Character Codes►
──────────────────────────────────────────────────────────────────────────────
© Copyright Microsoft Corporation, 1987-1992. All rights reserved.
Converted from qbasic.hlp with DosHelp/HelpConvert