TPUHELP.HLB  —  CREATE_KEY_MAP
  CREATE_KEY_MAP

  Creates and names a key map; optionally returns the name of the key map
  created for use with other TPU procedures.

  Syntax

     [string2] := CREATE_KEY_MAP (string1)

  Parameters

     string1    The name of the key map you are creating.

  Example

  The following procedure creates a key map and defines two keys in the key
  map; the name of the key map is stored in the variable MY_KEY_MAP which is
  used as a parameter for the DEFINE_KEY built-in:

  PROCEDURE init_my_key_map
     my_key_map := CREATE_KEY_MAP ("my_key_map");
     DEFINE_KEY ("EXIT", CTRL_Z_KEY, "Exit application", my_key_map);
     DEFINE_KEY ("COPY_TEXT ('syzygy')", F20, "Magic Word", my_key_map);
  ENDPROCEDURE;

  Related topics

     CREATE_KEY_MAP_LIST   DEFINE_KEY   REMOVE_KEY_MAP
Close Help