![[About]](r:\html\rexxabout.gif)
![[Toc]](r:\html\rexxtoc.gif)
0.9b (c) 1995 Peter Childs
The value of any REXX variable can be a string of characters. To select a part of a string, you can use the SUBSTR( ) function. SUBSTR is an abbreviation for substring. The first three arguments are:
o The string from which a part is taken.
o The position of the first character that is to be contained in the
result (characters are numbered 1,2,3...in the string).
o The length of the result.
For example:
S = 'reveal'
SAY substr(S,2,3) /* Says 'eve'. Beginning with the second */
/* character, takes three characters. */
SAY substr(S,3,4) /* Says 'veal'. Beginning with the third */
/* character, takes four characters. */
Inf-HTML End Run - Successful