Using return in a command script
Mike Kerner
MikeKerner at roadrunner.com
Wed Oct 26 15:13:45 EDT 2016
Are you using return for value and return for error?
return x for value
return x for error
On Wed, Oct 26, 2016 at 2:44 PM, Richard Gaskin <ambassador at fourthworld.com>
wrote:
> dunbarx wrote:
>
>> Do you mean something like this does not work anymore???
>>
>> Impossible.
>>
>> on mouseUp
>> doThis
>> answer the result
>> end mouseUp
>>
>> on doThis
>> return random(999)
>> end doThis
>>
>
> Works here as of v9.0 dp 1.
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
>
>
> _______________________________________________
> 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
>
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
More information about the use-livecode
mailing list