Passing parameters to a handler

Ken Ray kray at sonsothunder.com
Wed Jul 3 16:38:01 EDT 2002


Bill, what error are you getting?

Also, note that in the menuPick handler, 'graphMe' isn't being used (should
it have been "plotChart graphMe" ?).

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: "Bill Vlahos" <bvlahos at jpl.nasa.gov>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, July 03, 2002 4:13 PM
Subject: Passing parameters to a handler


> I can't seem to get passing parameters correctly.
>
> When I execute this cascade button script:
> on menuPick graphMe
>   plotChart "graph2"
> end menuPick
>
> to the handler in the Card script:
> on graphClicked n, x, y
>   set the bottomLeft of field "graphpoint" to the mouseLoc
>   put (x - trunc(x)) * 60 into mTime
>   put trunc(y) & " ms @ " & trunc(x) & ":" & trunc(mTime) into
> field "graphpoint"
>   show field "graphpoint"
> end graphClicked
>
> on plotChart whichGraph --,chartDimentions
>   hide field "graphpoint"
>   hide group whichGraph
> <snip>
>
> I get an error relating to the on graphClicked handler. Why does it go
> there instead of the plotChart handler?
>
> Bill Vlahos
>
> _______________________________________________
> 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