How to stop even processing?

B

Brett

I have several controls on a form. Each control has various events. The
flow may go like this:
control1.event1
control2.event1
control1.event2
control3.event1

How can I stop this chain in control2.event1? I'd like to stop the entire
process and return control to the form.

Thanks,
Brett
 
G

Guest

If you have a counter, or some way of detecting the current number, you can
use the modulus function to test for even or odd values:

If counter mod 2 = 0 then 'the counter is even
....
elseif counter mod 2 = 1 then 'the counter is odd
....
end if

Modulus returns the remainder of division.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top