Thoughts on current error handling best practice with VBScript
- From: FUBARinSFO <file1303@xxxxxxxxx>
- Date: Fri, 1 Feb 2008 17:51:56 -0800 (PST)
Hi:
While confused that I wasn't getting runtiime error messages when I
tried to write to files with invalid paths, I poked around see that
error handling is generally absent in vbscript. Since I make so few
errors in my programs, this has never been an issue for me....not.
Is there a document somewhere describing best practice with regard to
error handling in vbscript? With regard to defensive programming
practices that should be observed.
Finally, in self protection against writing to files/folders that
don't exist, it looks like I'll be wrapping the write statements in
fso.FolderExists(sPathspec) tests. Is that about right?
Thanks in advance for any comments you might want to volunteer.
-- Roy Zider
.
- Follow-Ups:
- Re: Thoughts on current error handling best practice with VBScript
- From: ekkehard.horner
- Re: Thoughts on current error handling best practice with VBScript
- From: Paul Randall
- Re: Thoughts on current error handling best practice with VBScript
- From: Anthony Jones
- Re: Thoughts on current error handling best practice with VBScript
- From: FUBARinSFO
- Re: Thoughts on current error handling best practice with VBScript
- Prev by Date: Re: Problems with Script in new domain...
- Next by Date: Re: Can I use system.net.* in VBScripts?
- Previous by thread: Re: Problems with Script in new domain...
- Next by thread: Re: Thoughts on current error handling best practice with VBScript
- Index(es):
Relevant Pages
|
Loading