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
©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997Not for commercial use.