Library /sys$common/syshlp/TPUHELP.HLB  —  ASCII
  ASCII

     Returns the character or symbol in the DEC Multinational Character Set
     corresponding to a given integer; or returns the integer value
     associated with the a character; or returns a string consisting of the
     character associated with a key.

  Syntax

     {integer1 | string1} := ASCII ({integer2 | string2 | keyword})

  Parameters

     integer1             The ASCII value returned by the ASCII built-in if
                          you specify a string parameter.

     string1              The character returned by the ASCII built-in if
                          you specify an integer or keyword parameter.

     integer2             The decimal value of a character in the DEC
                          Multinational Character Set.

     string2              A character whose ASCII value you want.  If you
                          specify a string longer than one character, ASCII
                          returns the value of the first character.

     keyword              The name of a key for which you want the
                          associated character.  If you specify the keyname
                          of a key that is not associated with a printable
                          character, ASCII returns the character whose ASCII
                          value is 0.

  Examples

     1.  The following assignment statement assigns a string consisting of
         the form feed character (ASCII 12) to the variable MY_CHARACTER:

         my_character := ASCII (12);

     2.  The following assignment statement assigns the integer value 97
         (the letter "a") to the variable ASCII_VALUE:

         ascii_value := ASCII ('a');

     3.  The following code fragment assigns to the variable KEY_VALUE the
         character associated with the key most recently pressed by the
         user:

         key_struck := READ_KEY;
         key_value := ASCII (key_struck);

  Related Topics

     READ_KEY
Close Help