Previous: chrhtc Up: ../chrrtn.html Next: chridx
INTEGER FUNCTION CHRID2 (TEXTA,LENA,TEXTB,LENB) (Substring Index Ignoring Case) Given two character strings defined by the arguments TEXT,LENA and TEXTB,LENB, search the first string for the first occurrence of the second string. If either of the arguments LENA or LENB are 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.