Goofy question #7234

J. Landman Gay jacque at hyperactivesw.com
Mon Jul 10 11:23:00 EDT 2017


I wrote this explanation a long time ago for someone else:
http://www.hyperactivesw.com/resources_function.html

Also, in your command handler example, you don't need "do" which adds 
unnecessary overhead. This is enough:

on mouseUp
  GoRed
end mouseUp

--
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



On July 10, 2017 1:50:39 AM Richmond Mathewson via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> I am obviously missing something . . .
>
> . . . so badly so that I've been trawling Danny Goodman's "Complete" HC
> 2 . . .
>
> and NOT getting 'it' . . .
>
> SO: one can set up a custom command:
>
> on GoRed
>    set the backGroundColor of card 1 to red
> end GoRed
>
> and one can call it:
>
> on mouseUp
>     do GoRed
> end mouseUp
>
> and one can set up a custom function:
>
> function GoRed
>    set the backGroundColor of card 1 to red
> end function
>
> Now: is the reason I cannot call that function because it takes NO
> parameters?
>
> Richmond.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list