Err.Number was a holdover from VB6. Like all VB6 holdovers, you were
strongly discouraged from using it. In C# you simply CANNOT use it. Just
write more try/catch blocks if you're really interested in where an error
takes place.
Err.Number was a holdover from VB6. Like all VB6 holdovers, you were
strongly discouraged from using it. In C# you simply CANNOT use it. Just
write more try/catch blocks if you're really interested in where an error
takes place.
does work in C#, but there a no point in it, because
one will need to catch the exceptions explicitly and
save the exception to make it available, so it is
less code to do it the C# way.
Arne
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.