HP TACL Programming Manual page 34

Tandem advanced command language
Table of Contents

Advertisement

Developing TACL Programs
Processing Character Data
2–14
To display the contents of sample2, enter:
14> VLIST sample2
1
The name of this variable is "sample2."
2
There are 37 characters in this line.
3
This is the last line in the variable.
To find all occurrences of the word "line" in sample2, enter:
15> VFIND sample2 "line"
2
There are 37 characters in this line.
3
This is the last line in the variable.
To change all occurrences of "line" to "sentence," enter:
16>
VCHANGE sample2 "line" "sentence"
2
There are 37 characters in this sentence.
3
This is the last sentence in the variable.
You can also use a variable for the comparison string:
17> #PUSH var1
18> #SET var1 line
19> VFIND sample2 var1
2
There are 37 characters in this line.
3
This is the last line in the variable.
107365 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents