For loop not initialized

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

For loop not initialized

The sequence of execution in your script jumped into the middle of a For…Next loop. This causes an error because For…Next loop counters must be initialized. The following demonstrates the correct structure of a For…Next loop.

For counter = start To end [Step step]
    [statements]
    [Exit For]
    [statements]
Next

To correct this error

  • Remove the jump into the For…Next loop.
  • Make sure that the For…Next loop includes all the necessary parts.
See Also

Looping Through Code | For...Next Statement | Do...Loop Statement


Exit Statement | For Each...Next Statement | While...Wend Statement


VBScriptOnline.com - Runtime Errors, Syntax Errors