foundline() and linedelimeters other than return

J. Landman Gay jacque at hyperactivesw.com
Mon Apr 18 15:28:57 EDT 2005


On 4/18/05 1:49 PM, R. Hillen wrote:

> Hello,
> 
> I wrote:
> 
> on mouseUp
>   set the itemdelimiter to "|"
>   set the linedelimiter to "\"
> 
>   put "a" & linedelimiter into field "haha"
>   put "b" & linedelimiter after field "haha"
> 
>   find "b" in field haha
>  answer the number of lines of field haha & return & the foundline
> end mouseUp
> 
> 
> This Script return  2  lines with "b" found in line _1_ of field 1.
> I expected line 2 of field 1.
> 
> Am I wrong?

Wait a sec, I didn't read your message enough times before I answered.

The word "linedelimiter" can't be used the way you are doing it. Try:

put "a\" into field "haha"
put "b\" into fld "haha"

You are doing text chunking, so this should work.
-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list