RAD Studio
ContentsIndex
PreviousUpNext
E2188: Expression syntax

This is a catch-all error message when the compiler parses an expression and encounters a serious error. 

Possible Causes 

This is most commonly caused by one of the following:

  • two consecutive operators
  • mismatched or missing parentheses
  • a missing semicolon on the previous statement.
Solutions 

If the line where the error occurred looks syntactically correct, look at the line directly above for errors. 

Try moving the line with the error to a different location in the file and recompiling. 

If the error still occurs at the moved statement, the syntax error is occurring somewhere in that statement. 

If the error occurred in another statement, the syntax error is probably in the surrounding code.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!