Default values for handler parameters

Scott Rossi scott at tactilemedia.com
Sun Dec 8 13:51:44 EST 2013


Pete:

How is what you wrote not accomplished by the following?

command myCommand p1
    local p2="abc"

    -- more stuff
end myCommand

Maybe I'm missing what you're proposing, but I'm not seeing an immediate
use for it.  Thanks for explaining.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 12/7/13 4:43 PM, "Peter Haworth" <pete at lcsql.com> wrote:

>Live code allows:
>
>local tVar="abc"
>
>but it doesn't seem to allow:
>
>command myCommand p1,p2="abc"
>
>.. unless there's some other syntax for it.
>
>Seems like an omission?
>
>Pete
>lcSQL Software <http://www.lcsql.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
>






More information about the use-livecode mailing list