The "offset" function returns a non-negative
integer indicating the location of the found
string.
What does it return if the string searched
for isn't found in the "stringToSearch"?
Could it be zero? The docs don't say.
Using "offset"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Using "offset"
Life is just a bowl of cherries.
That's odd. On my copy
There's a similar comment on each of the line and word etc. Offset entries in my docs. What version do you have?Revolution Documentation -> Dictionary on my edition (Studio 2.9 for Windows) wrote:Value:
The offset function returns a non-negative integer.
Comments:
The value returned by the offset function is the number of the character where charsToFind appears in stringToSearch. If the charsToFind is not in stringToSearch, the offset function returns zero.