Re: Wondering what you think about snippets like these?
- From: "McKirahan" <News@xxxxxxxxxxxxx>
- Date: Sun, 23 Sep 2007 14:39:27 -0500
"Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx> wrote in message
news:#BlW1Zh$HHA.4584@xxxxxxxxxxxxxxxxxxxxxxx
does
[snip]
With using "On Error Resume Next" you can't detect errors by
testing the "Err" object.
Erm, isn't that precisely why the statement exists - so that the error
not abort the script before it gets to our code for testing the result?
[snip]
Not sure what you're suggesting.
The OP did not use "On Error Resume Next" but was testing the
Err object in the "Function GetErrorInfo".
From the VBScript documentation:
On Error Statement
Description:
Enables or disables error-handling.
Remarks
If you don't use an On Error Resume Next statement anywhere in your code,
any run-time error that occurs can cause an error message to be displayed
and code execution stopped.
.
- Follow-Ups:
- Re: Wondering what you think about snippets like these?
- From: Al Dunbar
- Re: Wondering what you think about snippets like these?
- References:
- Wondering what you think about snippets like these?
- From: Dave Marden
- Re: Wondering what you think about snippets like these?
- From: McKirahan
- Re: Wondering what you think about snippets like these?
- From: Al Dunbar
- Wondering what you think about snippets like these?
- Prev by Date: Re: populate table with results of query
- Next by Date: Re: Wondering what you think about snippets like these?
- Previous by thread: Re: Wondering what you think about snippets like these?
- Next by thread: Re: Wondering what you think about snippets like these?
- Index(es):
Relevant Pages
|