Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Breaking loops
#1
Out of simple routine, I created a for loop like this:
Code:
for i = 0 to ubound(m)
    if m( i ) = 0
        break
    end if
next

At first, I did not understand what was happening. break was not working. But there was not any error or even a warning. Then I realized: break is not a part of Basic. It never was.
The strange point is the absence of any error or warning. Either this was included in the grammar by error, or maybe because it is planned for inclusion.
I don't know.
-- Baltasar
Reply


Messages In This Thread
Breaking loops - by baltasarq - 02-07-2025, 12:28 PM
RE: Breaking loops - by boriel - 02-08-2025, 06:50 PM
RE: Breaking loops - by baltasarq - 02-08-2025, 07:48 PM
RE: Breaking loops - by boriel - 02-09-2025, 04:34 PM
RE: Breaking loops - by baltasarq - 02-10-2025, 09:23 AM
RE: Breaking loops - by boriel - 02-10-2025, 09:58 AM
RE: Breaking loops - by boriel - 02-16-2025, 05:07 PM
RE: Breaking loops - by baltasarq - 02-16-2025, 06:51 PM
RE: Breaking loops - by boriel - 02-16-2025, 09:29 PM
RE: Breaking loops - by boriel - 02-16-2025, 10:26 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)