- Published: Thursday, 09 March 2006 10:48
We all know that we should use
Try ... Catch instead of
On Error... But our VSdocman contains some code ported from VB6. This code naturally uses
On Error... and it was OK as long as the code worked correctly.
Recently, we decided to clean the old code and use String.equals method for comparing two strings instead of = operator. And suddenly On Error Resume Next wasn't good anymore. If the original method was