I have asked this before.

N nnoydb at excite.com
Fri Sep 2 09:40:00 CDT 2005






I have two functions/handlers like the following code

function ThingOne
 repeat forever
  --Single step of long process
  --Write to edit control
  wait for 0 seconds with messages
 end repeat
end function 

function ThingTwo
 --SIngle step another long process
 --Write Edit 
 wait for 0 seconds with messages
end function 

At this point I click a button invoking ThinOne then the button invoking ThingTwo.  Only 1 of the functions seem to be running why?  Does wait with messages not allow currently executing handlers to continue until the currently handler exits?

Shouldn't this alternate? If not how do you make them alternate? I am aware of "send in time" but that is not the manner in which the specific problem should be solved. 


Kevin









-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
Any resemblance between the above and my own views is non-deterministic.

 The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
 is left as an exercise for the second god coefficient. 
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!





More information about the use-livecode mailing list