pass by reference with multiple parameters?

Dar Scott dsc at swcp.com
Sun Jul 13 22:55:00 EDT 2003


On Sunday, July 13, 2003, at 08:00 PM, Alex Rice wrote:

> OK that works... This is actually what I'm seeing though: put the  
> testit handler into a card script.

I changed my card handler to this:

on testIt @a, b
   put paramCount() && a && b
end testIt

I call it in my button and get this:
2 5 6

I call it from the multiline and get this
1 5

It is not that b is empty, it ain't even there.

Beats me as to why.  I guess there are limits to testing handlers with  
reference variables.

Dar
************************************************************************ 
****
   Dar Scott Consulting    http://www.swcp.com/dsc/    Programming  
Services
************************************************************************ 
****




More information about the use-livecode mailing list