Limit on the number of parameters?

Bob Sneidar bobsneidar at iotecdigital.com
Mon Jun 6 16:08:40 EDT 2022


Thanks Phil. I checked in the debugger both the call to the function where the 5th value was passed as a literal, and in the function itself where the parameter was no defined. It may be something with the SE debugger I'll look into it. 

Bob S


> On Jun 6, 2022, at 13:00 , Phil Davis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> In LC 9.6.7, this works in a button script:
> 
>   on mouseUp
>        tryThis "1", "2", "3", "4", "5", "66", "777", "8888", "9", "10"
>   end mouseUp
> 
> 
>   command tryThis
>        put the params -- the handler name and all 10 params are there
>   end tryThis
> 
> 
> I often stuff lots of data items into an array and use the array as a param. For me, that makes life easier. YMMV.
> 
> Phil Davis
> 
> 
> On 6/6/22 11:45 AM, Bob Sneidar via use-livecode wrote:
>> Is the number of parameters passed to a custom handler limited to 4? I do not seem to be getting a 5th parameter to pass to a function I use.
>> 
>> Bob S
>> 
>> 
>> _______________________________________________
>> 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
> (503) 307-4363
> _______________________________________________
> 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