https://forums.livecode.com/viewtopic.php?f=9&t=39568
Worth quoting in full:
I really wonder which 'clumsy clodhopper' was deputised to "update" that Dictionary a while ago? Probably some 'prawn' on a Summer 'experience' placement.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:
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.
