>Hi! I am searching for a way to locate a specific character within a document. The character is a carriage return, and I need to find the one that is the first one after a specified character set within the whole document. If this makes any sense to anyone, any suggestions???tia. :)
Well there may be better ways, but one way would be to do something like:
nNdx1 = AT( "specified character set", TheWholeDocument )
cSubString = SUBSTR( TheWholeDocument, nNdx )
nNdx2 = AT( CHR(13), cSubString )
nFinalIndex = nNdx1 + nNdx2 - 1
You might need to massage the specifics some and maybe use STRTOFILE() and/or FILETOSTR() but something like this should work.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.