TOC hyperlinks to same field text below

Sivakatirswami katir at
Sun Mar 26 03:06:15 EST 2006

Fascinating solution. Is there a way to get the field to set the  
scroll such that the found line is the top line of the field?


On Mar 25, 2006, at 6:00 PM, J. Landman Gay wrote:

> I use a trick. Use a script to put a non-typeable character, like  
> numToChar(3) or numToChar(8), after the text you need to find. I do  
> this with a temporary handler in the field:
> on selectionchanged
>   put numtochar(8) after the selection
> end selectionchanged
> Then I just click my way through the body of the text, adding  
> invisible characters as I go.
> Change the "find" command in the linkClicked handler so that it  
> adds that character to the string to find, and use "find string":
> on linkclicked pLinkText
>  find string pLinkText & numToChar(8)
> end linkclicked

More information about the Use-livecode mailing list