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.
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
integerinitialization expression indicating the kind parameter of the result.
The return value is of type
integer and of kind
kind is absent, the return value is of default integer kind.