Activating a Function in a Different Stack

Ken Ray kray at sonsothunder.com
Mon Oct 30 14:51:08 EST 2006


On 10/29/06 7:13 PM, "Marielle Lange" <mlange at widged.com> wrote:

>> Never mind.  It is in parameters where that does not work.

Ah, but using pass-by-reference parameters DOES work:

on mouseUp
  put "1" into tTest[1]
  put "2" into tTest[2]
  updateArray tTest
  combine tTest using cr
  put tTest
end mouseUp

on updateArray @pTest
  put "3" into pTest[3]
end updateArray

When you click this button you get :

1
2
3

Tada! <ok, Marielle said this first... ;-) >

Ken Ray
Sons of Thunder Software, Inc.
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com






More information about the use-livecode mailing list