SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-112
TRANSLATE
TRANSLATE
The TRANSLATE statement defines how characters are translated when the ALTER
CACHEFILTER ON option is enabled.
INITIALIZE
initializes the translate table so that all non-visible control characters are translated
to spaces. This is the default value of the translate table. It is equivalent to:
TRANSLATE 0 .. 31 TO " "; { translate null .. us TO space
TRANSLATE 14 TO 14; { allow shift-out to passthru
TRANSLATE 15 TO 15; { allow shift-in to passthru
TRANSLATE 27 TO 27; { allow escape to passthru
char
specifies either a string expression or a decimal integer. For example:
TRANSLATE "abc" to "ABC"
The equivalent is:
TRANSLATE 97..99 TO 65..67;.
Considerations
The TRANSLATE statement applies to all information to be stored in cache. It applies
to all subsequently received data from user tasks and also to data input via the window
editor. This statement has some other usages. This example causes all lowercase text
received in cache to be put in uppercase:
TRANSLATE "a" .. "z" TO "A" .. "Z";
It also causes any lowercase characters entered via the window editor to be put in
uppercase in cache.
UP
The UP statement moves the buffer address up relative to the current buffer address.
UP and U are synonyms that you can interchange.
expression
allows for moves greater than one.
TRANSLATE [ INITIALIZE ] char [..char ] TO char [..char ]
UP | U [: expression [: char ] ]