Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim conn
- on error goto catch
- 'Do work here
- set conn = new DbConnection()
- goto finally
- catch:
- MsgBox(Error)
- goto finally
- finally:
- if(conn not is nothing) then
- conn.Close()
- set conn = nothing
- end if
Advertisement
Add Comment
Please, Sign In to add comment