SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-147
Pound Sign #
#string-variable
indicates the beginning of a string-replacement statement when it appears as the
first character of a SeeView statement. For example:
#S := "assigns this string to string variable #S".
The pound sign is a string-type enforcer, signifying that a string variable, string
intrinsic, or string operation follows the pound sign. An attempt to use string
variable, intrinsic, or operator symbols without a preceding pound sign (#) results in
a syntax error. (Typing is enforced.)
&
specifies that strings are to be concatenated. & indicates string concatenation.
index-range
specifies that the string index range of [beginchar : endchar] returns
characters beginchar through endchar of a string variable or string intrinsic.
For convenience, when endchar is beyond the end of the current length of a
string, only the characters up to the end of the string are returned. Thus, if
#S:="12345678" then #S[6:132] returns "678" and is equivalent to
#S[ 6:#SIZE #S].
string-operator
works on string variables and string intrinsics. String operations either return
information or operate on the string variable or string intrinsic. For example, the
variable #S:=“SeeView Features”; has a length of 16 bytes. Thus #SIZE #S =
“16”. The operator #SIZE returns information by operating on #S to determine
its size. Some string operators modify the string. For example, #TRIM #S
returns “SeeView”, but also changes the contents of #S to be “Features”. String
Operators and String Intrinsics on page 9-148 describes string operators and
string intrinsics in detail.
string-intrinsic
returns information about the entity that it represents, such as #DATE and
#TIME. Contrast this with string operators that return information about the
contents of a string variable; for example, #SIZE #TIME. String Operators and
String Intrinsics on page 9-148 describes string operators and string intrinsics
in detail.