SAS Component Language Dictionary |
Assigns a command to a function key
CALL SETFKEY(key-name,command);
|
-
key-name
-
is the function key name, as listed
in the KEYS window. Function key names vary depending on the device that is
being used.
Type: Character
-
command
-
is the command to assign to the key.
Type: Character
You can use SETFKEY only in entries that
have a DISPLAY window containing fields or text. You cannot use it to assign
function key settings in windows that use BLOCK to display block menus.
Use FKEYNAME to return the name of a particular
function key and GETFKEY to return the command that is assigned to the function
key. If the command is not CANCEL, then SETFKEY assigns the CANCEL command
to the function key.
INIT:
keyname=fkeyname(1);
command=getfkey(keyname);
if (command ne 'CANCEL') then
call setfkey(keyname,'CANCEL');
return;
FKEYNAME
GETFKEY
NUMFKEYS
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.