It's not really a constant, in the sense that there's nothing stopping anyone
from changing the value. But, you can mimic the concept by creating an include
file and then just #include_once that file wherever you want to use the
"constant".
e.g.
constants.afl
-------------
MY_CONSTANT = 10;
chart.afl
---------
#include_once <constants.afl>
x = MY_CONSTANT;
...
or
function myFunction() {
global MY_CONSTANT;
local x;
x = MY_CONSTANT;
...
}
Mike
--- In [email protected], "p_her...@..." <p_her...@...> wrote:
>
> Good evening
>
> is there a way in AFL to define our own constant, like in C with #define.
> This would be useful.
>
> Thank you very much
>
> Philippe
>