|
-
Mar 3rd, 2012, 03:42 PM
#1
Thread Starter
Junior Member
[RESOLVED] How to interrupt a method from a user form control?
Hi,
I have a class module that basically controls a motor to open/close a trap. I defined the open and close methods. The methods simply turn on (of off) the motor and monitor the closure of a limit switch to stop motion. As with any mechanical system, things can and will go wrong and I have a panic stop button on the main user form to freeze the motor in order to prevent an accident or simply get out of the method if the switch is defective.
I do not know how to make the method recognize the fact that the form button has been pressed. I suspect it has to do with a "with event" declaration but am not sure how to incorporate this.
Any help would be welcome.
Thanks
Olivier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|