>>on error messagebox(program()+"-"+message() +" "+ str(lineno()))
>
>There is nothing like lineno() in VB.
>
>>Is there any function in VB that can be Declared in the module level?
>
>Error trapping must be done at procedure level (not possible at a higher 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.
>
>There are some tools (I think of Numega Failsafe) that will add error handling code to existing code.
Just a word here on the NUMEGA tool. It is a huge help in our debugging efforts. True time for testing and the rest of the suite are worth the investment.
~Joe Johnston USA
"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams