Using return in a command script
Phil Davis
revdev at pdslabs.net
Wed Oct 26 16:09:09 EDT 2016
Never mind. I just created a test stack in 8.1.1 where the calling
handler always received 'false' from the 'doIt' command.
I tried making 'doIt' return:
false
"false"
(x = 0) -- after adding 1 to x
They all worked!
Maybe something else is interfering with your outcomes?
Phil
On 10/26/16 12:57 PM, Phil Davis wrote:
> What happens if you return "false" instead of false? Still broken?
> Phil Davis
>
>
> On 10/26/16 12:45 PM, Bob Sneidar wrote:
>> I'm using version 8.1.1 (I don't distribute apps compiled with a dev
>> preview). I return false and immediately in the calling script check
>> for the result. It is empty.
>>
>> Bob S
>>
>>
>>> On Oct 26, 2016, at 11:44 , 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
>>
>> _______________________________________________
>> 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
>>
>
--
Phil Davis
More information about the use-livecode
mailing list