Private commands

Shao Sean shaosean at wehostmacs.com
Mon May 21 16:13:41 EDT 2007


I was just going to bug report this and wrote a small sample to show  
the bug, but it seems to work using passed by referenced parameters  
(even though I did see it not work the other day). Put the following  
code in a button and see if it works:

on mouseUp
   local t1="turkey", t2, t3
   repeat 50
     mooCow t1, t2, t3
     put t1, t2, t3
   end repeat
end mouseUp

private command mooCow p1, @p2, @p3
   put the seconds into p2
   put "moo" into p3
end mooCow


I'll go back to my other code and change it to a private command  
again and see if it works or not.



More information about the use-livecode mailing list