Klaus.
My "memory hook" for "Lineoffset" is: lineoffset(what,where)
Exactly. "What" to be found in "Where". "What" is the stringToFind. "Where" is dataToSearch.
I read that as: lineOffset(stringToFind,dataToSearch). Because we are trying to locate the stringToFind in the dataToSearch. The function actually works that way. But the dictionary says the opposite, lineOffset(lineToFind, stringToSearch)
The dictionary says "... number of the line where lineToFind first appears in stringToSearch."
Really? We want to find the line we need to find in the LineToFind? And the string "seed" is stringToSearch? Should be "stringToSearchFor"?
We are not searching a body of text for lineToFind, we are searching for stringToSearch. We do not find it (our string to search) in stringToSearch, we find it (hopefully) in lineToFind.
I say it should read "... number of the line where stringToFind first appears in dataToSearch."
OK, OK, semantics all.
Craig