foundline() and linedelimeters other than return
J. Landman Gay
jacque at hyperactivesw.com
Mon Apr 18 15:26:01 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?
Well, *I* don't think so, but the engine does. I expressed an identical
complaint about delimiters a long time ago, and was told that custom
deimiters were just for text chunking and don't work with other commands.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list