Where to put the ( ) ?

Alex Tweedly alex at tweedly.net
Thu Aug 25 20:04:15 EDT 2005


Jason Vickers wrote:

>Hi all,
>I have a field with "list behavior" selected as a property.  I want to be able to select the clickText and put it into a variable and simultaneously put the line number into a variable.  The code for it is generating a compile error.  
>
>When the card opens, I get the following error.      
>
>compiling at 6:38:35 AM
>Type Function: missing '('
>Object tests
>Line put the value of clickLine of field "tests" into txtLocation
>Hint 
>
>There is no hint....
>
>Here is the code for that:
>
>local txtLocation
>on mouseDown
>    put the clickText into selectTest
>    put the value of clickLine of field "tests" into txtLocation
>end mouseDown
>  
>
clickLine is a function - it should be used as either
... the clickline ...
or
... clickline() ....

I think you don't want the <<of field "tests">> part - the example in
the docs is simply
put the value of the clickLine into textOfClickedLine


-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.15/80 - Release Date: 23/08/2005




More information about the use-livecode mailing list