Combined Events

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


Wouter,
  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 lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] 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
   mousedown
end returninfield

Greetings,
Wouter

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 lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution






More information about the Use-livecode mailing list