Combined Events

Jeff Honken jhonken at
Tue Mar 21 11:39:39 EST 2006

  Thank you for the reply but I'm a little confused with your answer.  I
want the same code "answer Hello" to run in a field no matter if I click
on the field with the mouse or press the enter key in the field and I
don't want to:

on returnInField
    answer "Hello"
end returnInField

on mouseDown
  answer "Hello"
end mouseDown

What I would like is something like this that will work:

on returnInField or mouseDown
    answer "Hello"
end returnInField or mouseDown

-----Original Message-----
From: use-revolution-bounces at
[mailto:use-revolution-bounces at] On Behalf Of Wouter
Sent: Tuesday, March 21, 2006 9:13 AM
To: How to use Revolution
Subject: Re: Combined Events

for example:

on returninfield
end returninfield


On 21 Mar 2006, at 17:03, Jeff Honken wrote:

> 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

use-revolution mailing list
use-revolution at
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:

More information about the Use-livecode mailing list