SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-176
String Intrinsics
This example shows how this intrinsic might be used to determine the security
group or user name associated with a TASK variable:
#TASKWIDTH
returns a numeric value representing the width of a window on the current WITH
taskid. The WITH statement indicates which taskid’s attributes are returned by
the #TASK... intrinsics.
You can use this intrinsic to determine the size of a window for a given taskid.
For an example, see #TASKCACHELINE on page 9-165.
#TERMFILENAME
returns a string containing the NonStop file name of the current SeeView terminal.
You can use this intrinsic to inform an external user, or program, of the name of the
SeeView terminal. For example:
#TERMFILENAMEOLD
returns a string containing the file name of the SeeView terminal prior to the last
connect operation. If no prior connect has been performed by this SeeView, the
intrinsic returns the null string.
You can use this intrinsic to reconnect SeeView to the terminal where it was
previously connected. For example:
#TERMID
returns a string that represents the terminal type of the current SeeView terminal.
Terminal types correspond to the following product numbers: T6530, T6526, T6540
(PCT), and so on.
WITH FUP;
Var #GrpName:=#TAKE #TASKUSERNAME;
Var #UsrName:=#TAKE #TASKUSERNAME[#SIZE #GrpName+2:132];
IF #GrpName = "SUPER" THEN MSG "FUP accessorid is in SUPER group";
MSG "The file name of this terminal is " & #TERMFILENAME;
TASK SEEDIT;
WITH SEEDIT;
IF NOT #TASKSTART THEN
IF NOT #TASKPROMPTING THEN BREAK SEEDIT;
#s := "CONNECT " & #MYPROCESSNAME & " TO " & #TERMFILENAMEOLD;
WRITE SEEDIT,#s;