123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|334|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Punctuation Issue

Fri, 13 Dec 2024, 14:41
dna

Syntax Error


I have not use BB in a while and so I am rusty at this however, this code gives me an odd error when I un comment the While Wend statement to use the BB=BB+1 variable. Yes I do remove the extra wend but the problem is that the program will not stop to print the F1 and the total of BB at the PRINT F1: PRINT BB:Waitkey:End. The program throws the Graphics window up for a moment and then immediately closes.
Blitz is not installed, it's running in a folder, if that makes a difference.
Is there some limit on the length of a text file that causes this? The text file in question is 4.41MB in length. I don't know how to upload that as well.



-=-=-
DNA
Fri, 13 Dec 2024, 16:08
Jayenkai
Chop it up into 1-command-per-line, and that should help you to track down the bug a bit better. Though Blitz is happy to do multi-command "horizontal scroll" lines, it does make things harder to debug, because you might have any number of issues on the same line.

If I were a betting man, it'd likely be the fact that you've used the Wend command without a breaking colon..
That is, it's reading the line"BB=BB+1 Wend"
When it should be reading "BB=BB+1" and then "Wend"

If you read it aloud or in your head, you'll be reading "one wend", when you want to be reading it as "one.. .. wend"

-=-=-
''Load, Next List!''