SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-170
String Intrinsics
#TASKLINE
returns a numeric value representing the screen line number of the top edge of a
window on the current WITH taskid. Screen line numbers range from 1 through
24. The WITH statement indicates which taskid’s attributes are returned by the
#TASK... intrinsics.
You can use this intrinsic to determine where a window is located for a given
taskid. For an example, see #TASKCACHELINE on page 9-165.
#TASKMENU
returns a string containing the file or cache name of the script that declared the
current WITH taskid if the taskid was declared by a ?MENU taskid interpreter
directive. The WITH statement indicates which taskid’s attributes are returned by
the #TASK... intrinsics.
If the current WITH taskid was declared with a TASK statement, #TASKMENU
returns the null string “”.
The intrinsic tells whether the current WITH taskid was declared with a TASK
statement (for example, #TASKMENU=“”) or with a ?MENU directive (for example,
#TASKMENU=“$SYSTEM.SYSTEM.SEESHELL”, indicating the file or cache name
where the menu was declared). #TASKMENU contains the file or cache name
where it came from.
You can use this intrinsic to determine the script file name that declared a given
?MENU taskid.
This example invokes the script that declared the last referenced menu:
#TASKMINUTES
returns a string representing the number of minutes since the current WITH
taskid was started or stopped. Use the WITH taskid statement to specify which
taskid’s attributes are returned by the #TASK... intrinsics. Use the
#TASKSTOPPED intrinsic to determine whether a task is currently stopped or
running. If the number of minutes is greater than 32766, #TASKMINUTES returns
32766.
#TASKMSGSLASTREAD
returns the number of logical messages in the last I/O block received for the
current WITH statement. The WITH statement indicates which taskid’s attributes
are returned by the #TASK ... intrinsics.
This feature supports the SeeView Server Gateway and enables a script to
efficiently process BLOCKEDIO messages received from a task.
WITH #MENUTASKID;
IF #TASKMENU<>"" THEN BEGIN {invoke script that built menu
EXECUTE "INVOKE " & #TASKMENU;
END;