05-17-2024, 05:00 PM
I'm not sure Steve that the IDE isn't sensing a missing variable for the Nexts' in your examples.
If your code is
For x = 1 To 10
Print x
or your code is
For x = 1 To 10
Print x
next 1
or your is
For x = 1 To 10
locate x+2,10
Print x
next y
Then in each of these example the warning message is about the control variable. No coding errors or program flow errors pop up, the IDE is sensing the error is in the control variable but doesn't state the name of the actual variable although you would think is would know this from the For statement.
I wasn't sure if it was possible to have an option to have the "Next "display the control variable which I thought it already knew, I didn't mean to advocate any major change in the warning message.
If your code is
For x = 1 To 10
Print x
or your code is
For x = 1 To 10
Print x
next 1
or your is
For x = 1 To 10
locate x+2,10
Print x
next y
Then in each of these example the warning message is about the control variable. No coding errors or program flow errors pop up, the IDE is sensing the error is in the control variable but doesn't state the name of the actual variable although you would think is would know this from the For statement.
I wasn't sure if it was possible to have an option to have the "Next "display the control variable which I thought it already knew, I didn't mean to advocate any major change in the warning message.