SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-164
String Intrinsics
You can use this intrinsic to programmatically reshell the current shell. For
example:
#SPACES
returns a string containing all space characters “ ”.
You typically use this as a way to generate a variable number of spaces. For
example:
#TASKCACHEFILE
returns the name of the file contained in the cache associated with the current
WITH taskid. The WITH statement indicates which taskid’s attributes are
returned by the #TASK ... intrinsics. If the cache was not loaded using the SEEDIT
GET command, #TASKCACHEFILE equals the null “” string.
You can use this intrinsic is to determine the files currently being edited in the
SeeView environment. For example:
#TASKCACHEFREE
returns a numeric value representing the number of free cache memory pages for
the cache associated with 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 actual number of cache pages in use by
the current WITH taskid. For example:
EXECUTE "INVOKE " & #SHELL;
VAR #name := "Your name";
VAR #RightJustifyName := #SPACES[1:40-#SIZE #name] & #name;
?MENU files
?SECT main
DELETE files!;
VAR tid:=-1;
FOR #TASKCOUNT DO BEGIN
WITH tid:=tid+1;
IF #TASKCACHEFILE<>"" THEN
PUSH #TASKSYMBOL & " = " & #TASKCACHEFILE onto files;
END;
LINE 4;
WINDOW files CACHE FIRST;
?PROC TaskPagesUsed( taskid, PagesUsed )
{---------------------------------------
{ Return number of pages actually used by taskid
{--------------------------------------------------
PARM PagesUsed OUT; {will contain # of pages used
WITH taskid;
PagesUsed := #TASKCACHEPAGES - #TASKCACHEFREE;