Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 49,498 times

Contents

Related Categories

Handling Errors in VB/VBA/VBS/ASP - Differences in ASP

mrjdesign

Differences in ASP

As most ASP programmers will know, the ASP object model is a limited one compared to that of VB 6. Although this problem will be resolved with the release of ASP.NET, for now ASP programmers have to put up with a limited array of ASP error handling commands (even less than in standard VB). The essential differences are outlined here:

On Error Resume Next - Supported
On Error Goto XXX - Not Supported (as the GoTo command and labels are not supported)
Error - Not supported, use Err.Description instead.
On Error Goto 0 - Supported; cancels the On Error Resume Next statement

Therefore, ASP programmers are basically limited to using

On Error Resume Next ' possible error?
Set objObject = Server.CreateObject("MyDLL.MyClass")
If Err Then
    'an error occured
End If

I can't wait for ASP.NET!!!


©2001 - All Rights Reserved - MRJ Design
The source code samples and information pertained within this document are considered copyrighted material and may not be re-distributed by electronic or other media in any form or fashion whatsoever, withou

Comments

  • How to handle error in infinite loop

    Posted by pmanojtvm on 26 Apr 2005

    Is there any way to handle errors in INFINITE LOOP.

    for example,

    While Not blnIdeaFound
    blnIdeaFound = ProcessDetector(EXE_NAME, False)
    Wend

    IF THE CONTROL IS INSIDE THE LOO...