Discussion Locked

stopping vb code running after starting

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is it possible once you have started to run a Visual Basic routine to stop it, if you have not included a code break???

5 replies

by medievaldude

I assume you want to enter break mode. The only ways to do this are:
1. Break point (which you have stated you haven't included)
2. Set Break on All Errors. If an error occurs, you will enter break mode, even if you have error handling.
3. Havea Debug.Assert() statement in your code. If this evaluates to false, it will enter break mode.

Let me know if this helps or not. I'll try to give you a better answer if this answer was useless to you.

by dazrimm

Thanks for your help sorry about slow reply i have been working on real time stuff since i posted the question .

I have been working on modifying code in eEnterprise version 6

working a lot with already modified code and found one that the previous administrator had been playing with .
i ran the code and got stuck in a loop hence the question..

So once again Thankyou for your response
Darren Rimmer...

by Lamont Adams

Once again, assuming you want to get into break mode in the IDE, you can also press{CTRL} {BREAK} simultaneously (the break key usually shares space with the Pause key on the keyboard) while the routine is running. Unless your code is blocked on a lower-level call, like an API function, lengthy query run, or something, you'll go right into break mode.

by dazrimm

Thanks for your help sorry about slow reply i have been working on real time stuff since i posted the question .

I have been working on modifying code in eEnterprise version 6

working a lot with already modified code and found one that the previous administrator had been playing with .
i ran the code and got stuck in a loop hence the question..

So once again Thankyou for your response
Darren Rimmer...

This discussion is closed to new replies.