Informatix Expert Licensed User Longtime User Jul 2, 2014 #1 If I use the Loop function of the lgSound class of LibGDX (e.g. MySound.Loop), I get an error "End Sub is missing" because of a bug in your parser.
If I use the Loop function of the lgSound class of LibGDX (e.g. MySound.Loop), I get an error "End Sub is missing" because of a bug in your parser.
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2014 #2 Loop is a reserved word (similar to End and Next). For now you will need to change the method name.
Informatix Expert Licensed User Longtime User Jul 2, 2014 #3 Erel said: Loop is a reserved word (similar to End and Next). For now you will need to change the method name. Click to expand... Note that End is perfectly admitted as a class method (fortunately for libGDX) but the main problem is not exactly here because I agree and I will change the name of the Loop function. It is in the error message that is reported to the user. It should be something like "Loop is a reserved keyword". And if I put the word "Loop" alone, the parser should be able to make the difference and warns me with a message like "Do is missing", but certainly not with "End Sub is missing", which is wrong and doesn't give any clue to the developper. Same problem with "Next".
Erel said: Loop is a reserved word (similar to End and Next). For now you will need to change the method name. Click to expand... Note that End is perfectly admitted as a class method (fortunately for libGDX) but the main problem is not exactly here because I agree and I will change the name of the Loop function. It is in the error message that is reported to the user. It should be something like "Loop is a reserved keyword". And if I put the word "Loop" alone, the parser should be able to make the difference and warns me with a message like "Do is missing", but certainly not with "End Sub is missing", which is wrong and doesn't give any clue to the developper. Same problem with "Next".
HotShoe Well-Known Member Licensed User Longtime User Jul 4, 2014 #5 This happens if you leave out a Then in an If statement as well.