Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On Error On 1 Line of Code?
#5
Zephius Wrote:
Major Wrote:IS there anyway to make a on error resume next on just 1 line of code?

From my understanding "on error resume next" is bad mojo and would probably be best to find another way around it. What exactly is the problem?
Thats what I said basicly, I dont want a on error resume next code. I want it to work just for 1 line of code.

Spodi Wrote:
Code:
Dim SuxArray() As Long

On Error Resume Next
   MsgBox Ubound(SuxArray)
On Error Goto 0
Are you sure the On Error Resume Next wont act below On Error Goto 0 too?

The bug is when you open for example counterstrike and have a ms game running. I just want a way around it. I will just add that line of code into a new sub and add a on error resume next there.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)