The "do" command converts text into a command. Like this: Put "answer 5" into tcommand Do tcommand
This is useful in some situations, but usually it is more efficient to just say: Answer 5 Sent from my iPhone > On Jul 10, 2017, at 11:23 AM, J. Landman Gay via use-livecode > <use-livecode@lists.runrev.com> wrote: > > 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 | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > >> On July 10, 2017 1:50:39 AM Richmond Mathewson via use-livecode >> <use-livecode@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@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode