Previous: chrid2 Up: ../chrrtn.html Next: chrlc
INTEGER FUNCTION CHRIDX (TEXTA,LENA,TEXTB,LENB) (Substring Index) Given two character strings defined by the arguments TEXTA,LENA and TEXTB,LENB, search the first string for the first occurrence of the second string. If either of the arguments LENA or LENB is invalid, or if the second string is not found in the first, return 0. Otherwise, return its index, or position, in TEXTA, counting from the first character stored in TEXTA(*). The result returned is thus always .GE. 0.