December 2018
Beginner
210 pages
5h 7m
English
If the code of an object contains a syntax error, an attempt to compile this object will fail, and the compilation will stop on the first encountered error. Let's modify the Hello World example from the previous chapter and see how the Object Designer treats compilation errors. Suppose we have forgotten to put the apostrophe at the end of the text line, leaving the constant unterminated. This is a syntax error that prevents compilation:
OnRun() MESSAGE('Hello World);
Now, try to save the object with the Compiled option checked. The Object Designer will display an error message notifying you that there is a syntax error in the code and underlining the erroneous code block, as follows:
Read now
Unlock full access