How can you find which line of code an error occurs on without the compiler? On some computers, the program works fine. On other computers, it gets a Type Mismatch error, and on other computers, it gets a overflow error.
I could add a counter after everyline then pop up a message box with the counter # to find out where exactly the error is occuring, but is there an easier way?
Download MZ-Tools, it has a feature to add line numbers, and error handler. You can make it tell you at what line the error occured even when the code is compiled, and it's very easy to use.
How can you find which line of code an error occurs on without the compiler? On some computers, the program works fine. On other computers, it gets a Type Mismatch error, and on other computers, it gets a overflow error.
I could add a counter after everyline then pop up a message box with the counter # to find out where exactly the error is occuring, but is there an easier way?
You should always add error handlers to every new procedure you write.
The following is just a quick sample so you can modify: