Hi
Please take a look at the code given bellow. I print the err.number twice. But inside the if condition when I print I get err.number as zero. But before going to the if when I print the err.number I get an error code. What do you think ?
Thanks,
Gavin
'Gavin
Response.Write("Err.Number : " & Err.Number & "<br>"
Response.Write("Err.Description : " & Err.Description & "<br>"
Response.write( "If Not Err.Number = 0 Then...." ) & (Not Err.Number = 0) & "<br/>"
'END Gavin
' Again check for possible errors
If Not Err.Number = 0 Then
' Attempt to write debug log
DebugLog " - Folder.inc; SetDiscussion: Error getting folder. Error: " & Err.Number & " " & Err.Description
'Gavin
Response.write( "Big problem...." ) & "<br/>"
Response.Write("Err.Number : " & Err.Number & "<br>"
Response.Write("Err.Description : " & Err.Description & "<br>"
'END Gavin
' Display error message
Response.Write(bstrFolderID & "<br>"
Response.Write(Err.Number & ": " & Err.Description & "<br>"
Response.End
End If
Please take a look at the code given bellow. I print the err.number twice. But inside the if condition when I print I get err.number as zero. But before going to the if when I print the err.number I get an error code. What do you think ?
Thanks,
Gavin
'Gavin
Response.Write("Err.Number : " & Err.Number & "<br>"
Response.Write("Err.Description : " & Err.Description & "<br>"
Response.write( "If Not Err.Number = 0 Then...." ) & (Not Err.Number = 0) & "<br/>"
'END Gavin
' Again check for possible errors
If Not Err.Number = 0 Then
' Attempt to write debug log
DebugLog " - Folder.inc; SetDiscussion: Error getting folder. Error: " & Err.Number & " " & Err.Description
'Gavin
Response.write( "Big problem...." ) & "<br/>"
Response.Write("Err.Number : " & Err.Number & "<br>"
Response.Write("Err.Description : " & Err.Description & "<br>"
'END Gavin
' Display error message
Response.Write(bstrFolderID & "<br>"
Response.Write(Err.Number & ": " & Err.Description & "<br>"
Response.End
End If