User guide

31
VTB USER GUIDE
6.11 DEFINE
DEFINES are complex equivalences. They are composed by the NAME and the VALUE. The name identifies the DEFINE,
the VALUE can contain any alfa-numeric expression. The compiler each time a NAME of DEFINE is found, replaces it with
its VALUE. They are very useful to simplify the use of complex expressions or to Parametersze part of code. Also they can
be combined between self.
Declaring of a DEFINE
Using of a DEFINE in the code
To use a DEFINE in text code just we have to write the NAME. DEFINES can be used in a lot of situations making the
program more flexible because it's sufficient to change the VALUE of a DEFINE to obtain an immediate variation on all
the project.
Example:
If Define1>=10000
……………
……………
endif