Next: INT, Previous: IMAGE_INDEX, Up: Intrinsic Procedures [Contents][Index]
INDEX— Position of a substring within a string
Returns the position of the start of the first occurrence of string SUBSTRING as a substring in STRING, counting from one. If SUBSTRING is not present in STRING, zero is returned. If the BACK argument is present and true, the return value is the start of the last occurrence rather than the first.
Fortran 77 and later, with KIND argument Fortran 2003 and later
RESULT = INDEX(STRING, SUBSTRING [, BACK [, KIND]])
|STRING||Shall be a scalar |
|SUBSTRING||Shall be a scalar |
|BACK||(Optional) Shall be a scalar |
|KIND||(Optional) An |
The return value is of type
INTEGER and of kind KIND. If
KIND is absent, the return value is of default integer kind.
|Fortran 77 and later|