RE: How will u handle error in vb application ? explai...
Simple error handling at the top level is fairly easy - Something of the formOn error goto ErrhandlerErrHandler: if err 237 then resume next ' trivial not serious else msgbox err.description end if---However if an error happens in a lower class or activex control different error handling should be used.In asynchronous classes the best solution is to raise an error event to be trapped by the higher level program however unless the higher level program is properly written this error is liable to get lost. (You can help fix this by introducing interfaces)In synchronous classes passing an error string back (by pointer possibly) and checking it at the top level is advisable for exampleRS MySQLClass(ErrorString SQL)if len(ErrorString) > 0 then ' handle the error msgbox it etc.end if