SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-151
String Intrinsics
#TRIM #string-var
specifies #TAKE and #DROP for the first token in #string-var.
In this example, #TRIM returns the first token in the string variable #s and removes
that token from the contents of the string variable.
#UPCASE #string-var [ index-range ]
returns the contents of #string-var with all alphabetic characters up-shifted to
uppercase.
String Intrinsics
String intrinsics return information about the entities they represent, such as #DATE
and #TIME. In contrast, string operators return information about the contents of a
string variable; for example, #SIZE #TIME.
#CACHEFREE
returns the number of free cache memory pages currently available for new user
tasks and menus. Cache pages are used when tasks or menus are declared.
One use of this intrinsic is to determine whether enough free pages remain to
declare a task with a large cache. For example:
#CACHEPAGES
returns the total number of cache memory pages configured for the current
SeeView environment. It includes both used pages and free pages. Use PARAM
CACHEPAGES to configure SeeView cache size at startup time. (See Appendix A,
Running the SeeView Program.)
#CREATORUSERID
returns a string containing the SeeView process creator security group and user ID
numbers. The information is returned in "GGG,UUU" format, where:
GGG is the security group number.
UUU is the security user number.
#s:="one two three"; { s = "one two three"
DO BEGIN { This loop displays three
#t:= #TRIM #s; { Line 25 messages:
MSG #t; { "ONE", "TWO", "THREE"
END UNTIL #s=""; { Note #s = "" when done
IF #CACHEFREE > 200 THEN
TASK TACL CACHE 50 { config more cache for TACL
ELSE
TASK TACL; { let SeeView figure amount