Previous Page | Next Page

SAS Component Language Dictionary

SETFKEY



Assigns a command to a function key
Category: Keys

Syntax
Details
Example
See Also

Syntax

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


Details

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.


Example

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;


See Also

FKEYNAME

GETFKEY

NUMFKEYS

Previous Page | Next Page | Top of Page