advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ASC, CHR$ Functions Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 ASC(stringexpression$)
 CHR$(code%)
 
 Usage Notes
   ■ ASC and CHR$ are approximately inverses of each other. CHR$ takes a
     number and converts it to a one-character string; ASC takes the string
     converts it back to the number again.
 
   ■ If stringexpression$ is null, Visual Basic generates the run-time error
     message, "Illegal function call."
 
   ■ CHR$ is often used to send a special character to the screen or to the
     printer. For example, you can send a formfeed (CHR$(12)) to clear the
     screen and return the cursor to the Home position.
 
   ■ CHR$ can be used to include a double quotation mark (") in a string. For
     example:
 
         Msg$ = CHR$(34) + "Quoted string" + CHR$(34)
 
     This string, when printed, appears on the screen as:
 
         "Quoted string"