lineoffset

Jim Ault jimaultwins at yahoo.com
Fri Nov 6 20:11:49 EST 2009


Very curious why you would have to add 1 to the line number..
My script works here without it.

Jim Ault
Las Vegas

On Nov 6, 2009, at 4:48 PM, Rick Rice wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Jim Ault
jimaultwins at yahoo.com






More information about the use-livecode mailing list