Goofy question #7234
jonathandlynch at gmail.com
jonathandlynch at gmail.com
Wed Aug 23 10:57:03 EDT 2017
Sorry - old message that randomly popped up in my email!
Sent from my iPhone
> On Aug 23, 2017, at 10:53 AM, jonathandlynch at gmail.com wrote:
>
> 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 at 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 | 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
>>
>>
>>
>> _______________________________________________
>> 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