from list to card via double click

Pat Trendler ptrendler at bigpond.com
Sun Jan 9 17:19:43 EST 2005


on mouseUp
   if the hilitedLine is not empty then
      go card (the hilitedLine of me)
   end if
end mouseUp

Pat

----- Original Message ----- 
From: "Bob Hartley" <rev at armbase.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, January 10, 2005 8:04 AM
Subject: from list to card via double click


> Hi All.
>
> My wee database tutorial work is stuck again. (no great shakes there) :-).
>
> I have button that sticks the text fo a field item into a list ItemList.
>
> The script is this and works perfectly...
>
> on mouseup
>   repeat with n = 1 to the number of cds in this stack
>     put fld "Item" of cd n & return after theList
>   end repeat
>   delete last char of theList -- clear trailing return
>   put theList into fld "ItemList"
> end mouseup
>
> Now that i have my list I can sort it using
>
> on mouseUp
>   sort lines of field "ItemList" by word 1 of each
> end mouseUp
>
> This works perfectly...
>
> Now what I want to do is to double click on a list entry and go to the 
> card that produced this entry.
>
> I can't see how this si done. Searched the docs and the list archive 
> without any clear answer.
>
> Lots of clues though... linktext etc
>
> Any Ideas folks.
>
> Cheers
> Bob
>
> I
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 06/01/2005
>
>
> _______________________________________________
> 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