Hi all, I want to do something like this: button.connect(SEL_COMMAND) do ... some code... if some_condition then "cancel this event" end What I want is, a way to get out of the event's code, without terminating the program. How do I do this?
on 2009-12-16 04:06
on 2010-01-01 19:20
tuti plain wrote: > Hi all, > > I want to do something like this: > > button.connect(SEL_COMMAND) do > > ... some code... > if some_condition then "cancel this event" > > end > > What I want is, a way to get out of the event's code, without > terminating the program. How do I do this? Have you tried: ... some code ... if some_condition then return end Happy New Year
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.