User-defined Function Keys 33 to 232 can be used by GUI terminals, their numbers can be used as actions associated with s and icons. Function Keys greater than 232 are reserved for PROIV.

In summary:

Note: There was a change with internal Function Keys when PROIV moved from Version 5 to Version 6. The internal Function Keys were shifted up by 40 and you may have to amend your code accordingly.

The following table lists the internal Function Keys and their associated @FNKEY values. They can be interrogated using the System Variable @FNKEY. For User FKEYn, the @FNKEY value is n + 32.

@FNKEY Value

Function Key

@FNKEY Value

Function Key

-2

return only *1

17

Top

-1

None *2

18

EXPAND

0

return

19

EDIT (green screen only)

1

HELP

20

ADD

2

®

21

CHANGE

3

¬

22

DELETE

4

¯

23

LOOKUP

5

­á

24

INSERT

6

Not used

25

Backspace

7

Back Tab

26

Delete character

8

Tab

27

Not used

9

CANCEL

28

Window

10

EOD (END)

29

Not used

11

Not used

30

Not used

12

Not used

31

Not used

13

Not used

32

Not used

14

Page Down

33-232

User-defined Function Keys

15

Page Up

 

 

16

Bottom

 

 

*1     Sends just RETURN when there is no or icon response string (i.e., does not send format text).

*2     Specifies no Function Key (this allows two or more or icon response strings to be concatenated before being activated). This is also useful for icons with no associated actions.

Comment on this topic

Topic ID: 500169