Invalid 'exit' statement

Runtime Errors, Syntax Errors Home home | Other Resources other resources | Advertise with us advertise | Link to us link to us | Contact us contact | Bookmark Us!
Google
 
Where can I find good Windows Web Hosting to host my VBScript Site?
You can find good Windows Hosting which support VBScript, ASP, ASP.Net,VisualStudio.Net and MSSQL at a very reasonable low monthly fee at EasyCGI.com and DiscountASP.Net

Invalid 'exit' statement

You used an Exit statement inside one of the following program control constructs:

  • With Statement.
  • If...Then...Else Statement.
  • Select Case Statement.

You can legally use an Exit statement to leave these structures only:

  • Do...While loop(Exit Do).
  • For...Next loop(Exit For).
  • For Each...Next loop(Exit For).
  • Function procedure(Exit Function).
  • Sub procedure(Exit Sub).

To correct this error

  • You may have improperly used Exit If, Exit With, or Exit Select.
  • Do not use Exit with If, With, or Select statements.
See Also

Exit Statement | Do...Loop Statement | For Each...Next Statement


For...Next Statement | Function Statement | Sub Statement


VBScriptOnline.com - Runtime Errors, Syntax Errors