SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-153
String Intrinsics
Nonnumeric function keys correspond to values of 33 to 47. You can test
nonnumeric function keys such as Roll-Up, Roll-Down, and Return, with FKEY...
intrinsics, such as #FKEYROLLUP, #FKEYROLLDOWN, and #FKEYRETURN.
#FKEYCOL
returns the column number of the cursor when a function key (for example, #FKEY
or #FKEYRETURN) was last pressed. The value of #FKEYCOL ranges from 1
through 80.
One common use of this intrinsic is to determine where to place a window or
menu, based on the location of the cursor when a function key was last pressed.
For example:
#FKEYDELETELINE
returns a unique nonzero numeric value (45) if the last function key pressed was
the Delete-Line key. If the last function key pressed was not the Delete-Line key,
the value returned is zero. (This lets you use the intrinsic as a Boolean.)
#FKEYINSERTLINE
returns a unique nonzero numeric value (37) if the last function key pressed was
the Insert-Line key. If the last function key pressed was not this key, the value
returned is zero. (This lets you use the intrinsic as a Boolean.)
#FKEYLINE
returns the line number of the cursor when a function key (for example, #FKEY or
#FKEYRETURN) was last pressed. The value of #FKEYLINE ranges from 1
through 24.
One use of this intrinsic is to programmatically move the cursor relative to the last
cursor position when a function key is pressed. For example:
#FKEYNEXTPAGE
returns a unique nonzero numeric value (35) if the last function key pressed was
the Next-Page key. If the last function key pressed was not this key, the value
returned is zero. (This lets you use the intrinsic as a Boolean.)
IF #FKEYCOL < 40 THEN BESIDE ELSE BELOW;
IF #FKEYLINE < (#MENULINE+#MENUHEIGHT-1) THEN
BEGIN { move cursor to next line of current menu
CURSOR #FKEYLINE+1, #FKEYCOL;
END;