NassauSky Posted September 29, 2020 Posted September 29, 2020 Is there any way I can capture every Variable must be of type "Object" error to a single function which handles it. Meaning without going through all the code and trying to find exactly where it can happen. Over the year or so of me updating the code, generally the app crashes with that error and I wanted it to end the program cleanly with a single short function. Crossing fingers there is a quick way for now and then I can eventually go piece by piece through the code. Thanks for any tips.
boom221 Posted September 29, 2020 Posted September 29, 2020 Define a COM error handler. There is a good example there
NassauSky Posted September 29, 2020 Author Posted September 29, 2020 (edited) Excellent @boom221! That did it and it will give me time to dig into each error. Thanks! Edited September 29, 2020 by NassauSky
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now