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 | [email protected]
HyperActive Software | http://www.hyperactivesw.com
On July 10, 2017 1:50:39 AM Richmond Mathewson via use-livecode
<[email protected]> 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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode