編集

Compiler Error AL0111

Note

The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to here. To read about contributing, see Contribute to the Help. Thanks!

Semicolon expected. Add a semicolon (;) to terminate the statement.

How to fix this diagnostic?

Add a semicolon (;) to terminate the statement at the reported position. This error often points to the line before the one you'd expect, so check the preceding statement.

Common causes:

  • A missing ; after an assignment, a method call, or a variable declaration.
  • A property line that isn't terminated.

Some constructs must not end with a semicolon. Don't add one after a moveafter or movebefore operation in a tableextension or pageextension, and don't put a semicolon on the statement immediately before an else.

// Missing semicolon -> AL0111
Message('Hello')

// Correct
Message('Hello');

Get Started with AL
Developing Extensions