Web hosting forum - generate an error. By using the OnErrorResumeNext statement,
generate an error. By using the OnErrorResumeNext statement, you force your program to ignore this error and carry on with the next control. On Error Resume Next For Each Control In Me.Controls Control.Text = “” Next Use of the OnErrorResumeNext statement should be kept to a minimum, since errors are basically ignored and their occurrence is silent to the user. This means that, should an unexpected error (that is, an error that you were not intending to handle when you chose to ignore errors) occur or should your application behave unexpectedly, the job of finding and correcting the cause of the error becomes almost impossible. The following is a template for error handling within your procedures using the OnError statement: Sub/Function/Property Name ( ) On Error Goto Name_Err … ‘procedure code Name_Exit: … ‘tidying up code - such as Set Object = Nothing Exit Sub/Function/Property Name_Err: … ‘error handling code e.g. a MsgBox to inform the user Resume Name_Exit End Sub/Function/Property If cleanup code isn’t required within the procedure, you can simplify the template by removing the Name_Exit label and removing the ResumeName_Exit statement. If you are writing an error-handling routine for use within a class module or a DLL, you should use the following template, which raises an error back to the client, thereby notifying the client of the error and allowing the client to handle it: Sub/Function/Property Name ( ) On Error Goto Name_Err … ‘procedure code … ‘tidying up code - such as Set Object = Nothing Exit Sub/Function/Property Name_Err: … ‘error handling and tidying up code Err.Raise etc… End Sub/Function/Property Errors that occur within an error handler are passed up the call chain. To illustrate this, consider the following code: Public Function Test( ) As Integer On Error Goto Err_Test Dim iTest( ) As Integer = {1, 2} Test = iTest(3) ‘ error Exit Function Err_Test: MsgBox(iTest(4)) ‘ error
Note: If you are looking for top 10 and very good webhost to host and run your jsp application check Actions jsp hosting services