Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on ln in a for/next loop
#9
Way, way too many lines of code to display here, but I think I may have found the problem, seem I used "ln" as a loop control in an obscure subroutine where I had "ln" again as a loop control variable but in that subroutine I had an "exit for", so maybe it was carrying over the last loop value of "ln". Then again, the "ln" should have been a local variable, I have not Dim Shared it so I wouldn't have thought to initialize it to zero before the printing of SpeedFactor and Speed. 

It's ok you guys, this is not a big deal. I do appreciate the feed back and if it happens again, as the song goes " I'll stay on the bus, forget about us, put the blame on me" it's an easy error to overcome and keep on coding.
Reply


Messages In This Thread
Question on ln in a for/next loop - by Dimster - 09-12-2024, 03:59 PM
RE: Question on ln in a for/next loop - by Petr - 09-12-2024, 05:25 PM
RE: Question on ln in a for/next loop - by LEM - 09-12-2024, 05:44 PM
RE: Question on ln in a for/next loop - by bplus - 09-13-2024, 12:45 AM
RE: Question on ln in a for/next loop - by Dimster - 09-13-2024, 02:46 PM
RE: Question on ln in a for/next loop - by bplus - 09-13-2024, 04:43 PM
RE: Question on ln in a for/next loop - by Pete - 09-13-2024, 06:23 PM
RE: Question on ln in a for/next loop - by bplus - 09-13-2024, 10:26 PM



Users browsing this thread: 8 Guest(s)