Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on ln in a for/next loop
#10
(09-13-2024, 02:46 PM)Dimster Wrote: 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.

OK, probably not, but by any chance did you pass ln to the sub which will pass back changed if of same same type, main and subroutine?

name that tune: Tie A Yellow Ribbon Around The Old Oak Tree

Can you name the singer who made it famous?
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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 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

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 704 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  Exiting sub while inside a loop PhilOfPerth 5 523 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  NewBie Question niteflyer 2 345 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha

Forum Jump:


Users browsing this thread: 1 Guest(s)