SeeView Manual
SeeView Language Elements
HP NonStop SeeView Manual—526355-004
5-12
Integer Variables
Integer Variables
Integer variables represent 16-bit signed integers. For example:
You can use integer variables in place of a taskid.
String Variables
String variables represent strings of up to 132 ASCII characters and have an implicit
length associated with them. You must prefix string variable names with the string type
flag #. (See the description for the # sign on page 9-144.)
You can use string variables anywhere a string expression is permitted. To display the
contents of a string variable or string expression, use the PRINT statement.
Task Variables
The TASK statement declares a symbolic taskid name that is associated with a
program on a NonStop system. Various SeeView statements can communicate with
the task. Task variables remain in effect while the SeeView program is executing.
A task variable has a type of integer except that it cannot appear on the left side of an
assignment statement. In all other respects, you can use task variables in the same
way as integer variables.
Task variables refer to various attributes of a task: they associate these attributes with
windows, and they perform read and write operations. The statements that operate on
a taskid are WRITE, READ, WRITE, WITH, OPEN, BREAK, GRAPH, PUSH, POP,
SAVE, LOAD, DELETE, and STOP.
Reexecuting a TASK statement reasserts the declaration. If the program has stopped,
it is restarted.
To access task attributes programmatically, use the WITH statement in conjunction
with the #TASK...intrinsics. For a complete list of #TASK... intrinsics, see the
description for the pound sign or octomorph (#) in Section 9, SeeView Statements and
Script Symbols.
TASK psmail;
VAR x := 70*3 { 210
,y := x/4 { 52
,z := y * "2" { 104
,t := psmail { PSMAIL's numeric taskid
;
WITH PSMAIL;
VAR x := 70*3,
y := x/4,
#s := "Time " & #TIME & " Date " & #DATE[1:8] & " X*Y=" & x*y,
#t := #DROP #s { "Time " gets dropped from string #s,
#z := " With task is " & #TASKSYMBOL & " on page " & #TASKPAGENO;