Combined Events

Cubist at aol.com Cubist at aol.com
Tue Mar 21 18:26:47 EST 2006


In a message dated 3/21/06 8:14:18 AM, "Jeff Honken" <jhonken at x12.info> 
writes:
>Is there any way to combine events so you don't have to have redundant
>code.  I would like the same code to run on both the "on returnInField"
>and "on mouseDown" events.  Jeff
   In general, the solution to this problem looks something like this:

on returnInfield
  DoStuff
end returnInField

on mouseDown
  DoStuff
end mouseDown

on DoStuff
  real code goes here
  code real here goes
  here code real goes
end DoStuff

  Hope this helps...



More information about the Use-livecode mailing list