Find Item's Line w/offset
Ken Ray
kray at sonsothunder.com
Thu Jan 23 16:24:01 EST 2003
Brilliant, Jeanne! I never thought of that... :-)
(Just had to comment... )
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "Jeanne A. E. DeVoto" <jeanne at runrev.com>
To: <use-revolution at lists.runrev.com>
Sent: Thursday, January 23, 2003 3:03 PM
Subject: Re: Find Item's Line w/offset
> At 12:23 PM -0800 1/23/03, mark mitchell wrote:
> >I want to find an item in a container, but only whole matches. Then I
> >want to delete the LINE which contains that item. So I need that line
> >number information. I know you can get this with the FoundLine, but is
> >there any way to get it using offset? Since I need whole matches to an
> >item, I cannot use 'lineOffset' but must use 'itemOffset'. So is there
> >anyway to convert from item number to a line number of a container?
>
> set the wholeMatches to true
> put itemOffset(whatToFind,theContainer) into myItemNumber
> put the number of lines in (item 1 to myItemNumber of theContainer) \
> into theItemLine
>
> --
> Jeanne A. E. DeVoto ~ jeanne at runrev.com
> Runtime Revolution Limited - The Solution for Software Development
> http://www.runrev.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list