Upgrading to DataFlex 3.2: Difference between revisions

m
m (→‎Compiler Errors: formatting)
Line 402: Line 402:
== Compiler Errors ==
== Compiler Errors ==


In DataFlex 3.2, a compiled DataFlex program (a .flx file) will only be created if your source code compilation does not generate any errors.
* In DataFlex 3.2, a compiled DataFlex program (a .flx file) will only be created if your source code compilation does not generate any errors.
The DataFlex 2.3 compiler was very forgiving; it allowed numerous types of incorrect syntax without generating error messages. The newer compiler version has been improved and will often catch errors the 2.3b compiler did not.
* The DataFlex 2.3 compiler was very forgiving; it allowed numerous types of incorrect syntax without generating error messages. The newer compiler version has been improved and will often catch errors the 2.3b compiler did not.
For example, the "Check=" entry option allowed checking for ascii characters without enclosing them in quotes. The DataFlex 3.2 compiler creates an error in this case.
: For example, the "Check=" entry option allowed checking for ascii characters without enclosing them in quotes. The DataFlex 3.2 compiler creates an error in this case.


Incorrect syntax (but not caught by 2.3 compiler):
: Incorrect syntax (but not caught by 2.3 compiler):
     Accept FILE.FIELD {Check=1|2|3}
     Accept FILE.FIELD {Check=1|2|3}


Correct syntax:
: Correct syntax:
     Accept FILE.FIELD {Check="1|2|3"}
     Accept FILE.FIELD {Check="1|2|3"}