LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 June 27 2006

mir
Member

Handling Errors and Exceptions in VB 6.0

hello guys and girls ..

anyone got an idea on how to handle errors and exceptions in vb 6.0

akid first i do tests on some values and such stuff

but there are errors that can happen on which we don't have control

any idea else than writing for each sub : on error go to errHandler :
then do work for the error handler:

any smart solution for that, smart error handling
like from error code u can display a message pre-saved or something like that
maybe something with log file
any one did such a solution before

i am ready for any suggestions

i have to do it for an application..so i thought i would just ask, maybe it would save me some time
cuz really need each minute

eh..ba3dneh bil 6.0 ..this is my last project bil 6.0 .. yalla can't wait to switch
sorry for askin outdated help
sorry if my post is not that readable

Last edited by mir (June 27 2006)

Offline

#2 June 27 2006

Dark_angel
Banned

Re: Handling Errors and Exceptions in VB 6.0

You still using VB6.0!

Damn, we are  reaching VB.NET 3.0 soon!

I guess it is time for you to grab a good .NET book and start looking to the future

Last edited by Dark_angel (June 27 2006)

Offline

#3 June 27 2006

Padre
Member

Re: Handling Errors and Exceptions in VB 6.0

Hah .... i dont see .net as being so good. so i'm still on 6.0 cause i want to
usually this is the only method i use. on Err goto ..... and then you have the Err class to look at all kind of stuff.
Err.Description Err.Code etc ....
you can use On Local Error and on Global error. check syntax tho. not sure ho it's written
i'll see if there is any other method.

Offline

Board footer