kd
Sat Mar 12 07:55:02 CST 2005
Thanks for the documentation link.
kd
"Bob Barrows [MVP]" wrote:
> kd wrote:
> > Hi All,
> >
> > I am a newbie as far as VB scripting goes.
>
> Here's the documentation:
http://tinyurl.com/7rk6
> That always helps.
>
> >
> > Would anybody be able to help me with error handling in vb script?
> >
> > The following statement gives an error, though "ErrHandler:" tag
> > exists in the same routine
> > on error goto ErrHandler
> >
> > kd
>
> Sorry, the only error-handling in vbscript is done by
>
> on error resume next 'turn on error-trapping
>
> 'statements whose errors you wish to discard
>
> on error goto 0 'turn off error-trapping
>
> 'statements whose errors you wish vbscript to handle
>
> on error resume next
>
> 'statement whose error you wish to handle
>
> if err <> 0 then
> 'handle the error
> end if
> on error goto 0
>
> Sorry,
> Bob Barrows
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
>