You are using ranges in the 3rd parimater again. 1-100 is not valid, just use the number 1 and it will return the first exact match. Also, you are specifying the number 2 as the 4th parimater, this means it does a regular expression search. Is the contents of %text-to-find a regular expression? There is a very big difference between a wildcard search and a regular expression.

If the contents of %text-to-find is plain text or wildcard text, just use "$fline(@text,%text-to-find,1)", without the invalid range, and without the 4th parimater. If the contents of the variable is a regular expression, then use "$fline(@text,%text-to-find,1,2)" and make sure that your regular expression syntax is correct.

"Allen is having a small problem and needs help adjusting his attitude" - Flutterby