title: VB GoTo failing compilation
body: <p>The below script will fail with an error, which I'm ok with. Right now, I'm trying to work out my <code>On Error GoTo &lt;label&gt;</code> syntax, and it is currently failing with the following error.</p>
  
  <pre><code>Line: 2
  Char: 16
  Error: Syntax Error
  Code: 800A03EA
  Source: Microsoft VBScript compilation error
  </code></pre>
  
  <p>Code below:</p>
  
  <pre><code>Sub ComCheck
      On Error GoTo ErrorHandler
  
      Dim fortis
  
      Wscript.Echo("Creating COM object.")
      Set fortis = CreateObject("TESTCOM.APPLICATION")
  
      Wscript.Echo("Write Database name.")
      Wscript.Echo(fortis.Databases[0].Name)
  
      GoTo ScriptEnd
  
  ErrorHandler:
      Wscript.Echo("-------ERROR OCCURRED------")
      Wscript.Echo("#" + Err.Number + "::" + Err.Description)
      Err.Clear
  
  ScriptEnd:
      Wscript.Echo("Script complete.")
  
  End Sub
  
  ComCheck()
  </code></pre>