FOR loop not initialized

One of the following conditions could have caused this error:

  • You used the GoTo statement to transfer control to a For statement.

    You cannot use the GoTo statement to transfer control to a For statement (though you can use it to exit a For loop).

  • The count variable that you specified in a For statement does not have a valid initial value.

    Make sure the count variable of the For statement is properly initialized. For example, in the statement For I = X, I and X must be of the same data type.