lineoffset
Rick Rice
rick-rice at shaw.ca
Fri Nov 6 19:48:45 EST 2009
Jim:
It works eh!
Had to make one slight change.
Had to add 1 to theLineNum
Thanks a bunch.
Rick
On Nov 6, 2009, at 4:39 PM, Jim Ault wrote:
> on mouseup
> set the itemdel to "|"
> get (cr & field "storage")
> put lineOffset( cr & the clicktext & "|", IT ) into theLineNum
> if theLineNum > 0 then
> put item 2 to -1 of line theLineNum of IT into fld "display"
>
> --note item 2 to -1 means item 2 to the last item in the line
> -- the reason is in case the text of the line uses a "|" char
> -- if that is true, then you would not display the entire line
> else
> put "Not found" into fld "display"
> end if
> end mouseup
More information about the use-livecode
mailing list