Compiler Error 127

Table of Contents

  1. " expected a statement "

" expected a statement "

You probably have forgotten a closing bracket.

It's easy to do this if you're stacking lots of if-else statements. In an if-else statement check to make sure you properly inserted a closing bracket for your if statement before beginning the else statement:

        //some code
//missing close brackets here will cause an error.   
   //some other code

You also will see this error condition if you mistakenly end the (something); statement with a semicolon, as just done in this sentence.

All wikipages