SKTS said. . . .netetiquettely tersely:

"couldn't get FIND to work on a multi line string" . . .and

Andu said, with even more awesome brevity:

> couldn't resist:

> on mouseUp
> local t1,t2
> set the itemdel to "�"
> repeat for each item x in fld "tTextField"
>   if the number of lines of x = 4 then
>     put x -- OK we know we got one. . .it shows in the message box
>     if  matchChunk (fld "tTextField", "(." & x & "*)",t1, t2) then put t1 &&
> t2
> #which gives you the first and last char of x
>     exit repeat
>   end if
> end repeat
> end mouseUp

Ahhh! a jewel gift from the wizard. . .  And add this line:

 select char t1 to t2 of fld "tTextField"

at the end  . . .and viola, the equivalent of a "find" for a multi-line
string.

But, Great Scott! (Raney), Andu said:

"I think you can't find more then 1 line"

Is it true?

(Thanks again Andu)

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to