"Johnny Jörgensen" <jo**@altcom.sewrote in message
news:ON**************@TK2MSFTNGP03.phx.gbl...
Can anybody tell me what the C# equivalent to VB's
Err.Clear()
is? As far as I can see, the Err object only exists in VB. But how do you
clear the error collection in C# then?
Cheers,
Johnny J.
The Err object doesn't exist in C#. This is a holdover from VB6 and
earlier, and although it appears in VB 2005/2008, you need to replace the
entire error handler with a try {...} catch (Exception e) {...} Finally
{...} block.
Mike.