MargeJones
Programmer
I have a VB project I created and when the user clicks a button, I have the code going through and looking for screen errors, such as fields that should have values in them. Whenever there is an error, I use the Error function to force the code to go to the routine's error handler. The error handler throws the code to an error class that I wrote that handles all VB errors and other forced errors. I use error number 0, so my code looks like this:
If text1.text = "" then
'code to populate error fields for error handler go
'here
Error 0
End If
Recently every time it gets to the Error 0 code, it causes a runtime error 5 "Invalid procedure call or argument". Does anyone know if there is a limitation on using this function? I have close to 200 forms, modules, classes, and user controls that use the function. Also, I have tried replacing the Error 0 with using the Err.Raise, and it causes the same error.
If text1.text = "" then
'code to populate error fields for error handler go
'here
Error 0
End If
Recently every time it gets to the Error 0 code, it causes a runtime error 5 "Invalid procedure call or argument". Does anyone know if there is a limitation on using this function? I have close to 200 forms, modules, classes, and user controls that use the function. Also, I have tried replacing the Error 0 with using the Err.Raise, and it causes the same error.