The lineOffset function returns the line that contains a specified string. All well and good, I use it all the time.
But the dictionary says:
Craig
But the dictionary says:
May I assume the terms "lineToFind" and "stringToSearch" in the above are switched?The value returned by the lineOffset function is the number of the line where lineToFind first appears in stringToSearch. If the lineToFind is not in stringToSearch, the lineOffset function returns zero. If the lineToFind spans more than one line, the lineOffset function always returns zero, even if the lineToFind appears in the stringToSearch.

Craig
Statistics: Posted by dunbarx — Mon Jan 27, 2025 11:22 pm