Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 794

Talking LiveCode • Dictionary error for "lineOffset"

$
0
0
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:
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.
May I assume the terms "lineToFind" and "stringToSearch" in the above are switched? :roll:

Craig

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



Viewing all articles
Browse latest Browse all 794

Trending Articles