S Sadk Member Feb 17, 2022 #1 B4X: startLoop: . . . some code If EndLoop = True Then GoTo startLoop: 'go to line ( 1) End If
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2022 #2 Code: Do While EndLoop = True Loop Upvote 0
S Sadk Member Feb 17, 2022 #3 Erel said: Code: Do While EndLoop = True Loop Click to expand... Hi . . . This works at the beginning of the sub, when executed, it stops, the condition goes to a specific line, there is a second condition that goes to the down B4X: If TextOfLine = "" Then GoTo Blankline: 'go to line ( 8 ) Else . . . some code Blankline: Upvote 0
Erel said: Code: Do While EndLoop = True Loop Click to expand... Hi . . . This works at the beginning of the sub, when executed, it stops, the condition goes to a specific line, there is a second condition that goes to the down B4X: If TextOfLine = "" Then GoTo Blankline: 'go to line ( 8 ) Else . . . some code Blankline:
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2022 #4 There is no goto in B4X. Split your code into two or more subs. It should be simple to solve it. Upvote 0