Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does my Loop end after 11 Loops?
#24
Here ye go!
Code: (Select All)
Open "The file" For Input As #1
Recur
Sub Recur
    '  Seek #1, 1  <<< this is going to mess you up with infinite loop
    If Not EOF(1) Then
        For i = 1 To 7
            'Input the 7 data items
        Next
        DataCount = DataCount + 1
        'Call to the Subroutine to deal with the 7 data items
        do7
        ' If DataCount = 4000 Then Exit Sub ' don't need this restriction either! allow any amount data
        Recur
    Else
        Close #1
        'and report to the principle
    End If
End Sub

Sub do7
End Sub
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Why does my Loop end after 11 Loops? - by Dimster - 02-06-2023, 07:08 PM
RE: Why does my Loop end after 11 Loops? - by bplus - 02-07-2023, 08:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exiting sub while inside a loop PhilOfPerth 5 525 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  Do Loop, Sleep and Mouse Button Dimster 5 599 09-06-2025, 12:57 PM
Last Post: Dimster
  Using modulo to loop through lists fistfullofnails 3 726 09-03-2025, 11:50 PM
Last Post: fistfullofnails
  What is wrong with this for/next loop Helium5793 6 1,165 04-15-2025, 05:11 PM
Last Post: Kernelpanic
  Question on ln in a for/next loop Dimster 13 2,251 09-13-2024, 11:07 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)