Next: Concatenation
Up: Intrinsic Character Operations
Previous: Intrinsic Character Operations
Consider,
CHARACTER(LEN=*), PARAMETER :: string = "abcdefgh"
substrings can be taken,
- string is `abcdefgh' (the whole string),
- string(1:1) is `a' (the first character),
- string(2:4) is `bcd' (2nd, 3rd and 4th characters),
- string(1) is an error (the substring must be specified
from a position to a position, a single subscript is no good).
Next: Concatenation
Up: Intrinsic Character Operations
Previous: Intrinsic Character Operations
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996Not for commercial use.