>>While running the application (after making setup) How can I find
>>the error of the form/proc name, line no, error message.
>>
>>Actually when i was running the application, the following error
>>no. appeared for some user machine.
>>
>>"Class doesn't support Automation (Error 430)"
>>
>>for the info. in my app. i have used ADO object only no other custom class/Dll.
>
>Line number will be hard to obtain on the first pass. But you can find the line using this method.
>
>First, in each of your sub/function, handle your errors this way.
>
>Private Sub MySub()
> On Error Goto EH
>
> 'Put your code here
>
>EH:
> MsgBox "An error occured in sub MySub." & _
> vbcrlf & vbcrlf & _
> err.number & " - " & err.description
>End Sub
>
>Once you will know in which sub/function the error occurs, you will be able to display a couple of msgbox to find the particular line on which the error occurs.
Thanks for the reply.
In visual foxpro I can find the correct line no & procedure using the following
code and the same can be declared gobal.So that I need not write the code each & every Procedure/Function
The Code As follows:
on error messagebox(program()+"-"+message() +" "+ str(lineno()))
Is there any function in VB that can be Declared in the module level?
otherwise If my application consits 10 form and each form consists of 10 procedures /function should I write 100 times the code.? kindly Suggest.
Thank You.
Wish U a Very Happy New Year
Regards,
Ramki& Ragu
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement