Use the Defines List
The Defines list consists of defined constants, (an expression with a fixed value). Defines are both pre-defined (internal) and user-created (global and local). Defines are used to determine which parts of a program's code will be compiled using an ifdef
statement (see Conditional Compiling). This creates more efficient code for a given machine type. For example, you can write a program that covers many machine types but compile for a specific machine with more efficient code.
Defined constants have three levels of scope:
Level | Scope |
---|---|
Internal Defines | All the projects present on your machine |
Global Defines | All the programs within your project. These are user-defined. |
Local definitions | Only the current program currently open |
-
-
Important! To guarantee precision when evaluating the expression, you need to pay special attention to the data types of variables used in the expression. For example when mixing LREAL and REAL, the precision will be that of REAL.
KAS IDE"Integrated development environment"
An integrated development environment is a type of computer software that assists computer programmers in developing software.
IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debugger