lineoffset
Jim Ault
jimaultwins at yahoo.com
Fri Nov 6 15:55:30 EST 2009
A second thought....
It looks like you might be thinking that you want to restrict the
'hit' to the first item of each line in the field.
To do that you would need to do something like
set the itemdel to "|"
get cr & the clicktext & "|"
put lineOffset( IT, (cr & field "storage"))
thus the match can only occur if the clicktext is exactly the first
item of a line
Hope this helps,
Jim Ault
Las Vega
On Nov 6, 2009, at 11:17 AM, Rick Rice wrote:
> I know there is something real easy I'm missing but;
>
> why doesn't this work?
>
> on mouseUp
> set itemdel to "|"
> get the clicktext
> put lineoffset (it, item 1 of cd field "storage")
> end mouseUp
More information about the use-livecode
mailing list