Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For..Next
#3
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.
Reply


Messages In This Thread
For..Next - by Dimster - 05-17-2024, 03:27 PM
RE: For..Next - by SMcNeill - 05-17-2024, 03:58 PM
RE: For..Next - by Dimster - 05-17-2024, 05:00 PM
RE: For..Next - by PhilOfPerth - 05-18-2024, 01:56 AM
RE: For..Next - by DSMan195276 - 05-18-2024, 04:28 AM
RE: For..Next - by Dimster - 05-18-2024, 01:09 PM
RE: For..Next - by Kernelpanic - 05-18-2024, 03:48 PM



Users browsing this thread: 1 Guest(s)