Subject Re: constant un trigger/procedure
Author emb_blaster
--- In firebird-support@yahoogroups.com, "svanderclock" <svanderclock@...> wrote:
>
> hello,
>
> i don't like to see in trigger some code like
> if xxx = 3 then ...
> is it possible to declare global constant like
>
> Declare MyconstanteName INTEGER = 3;
>
> thanks by advance
> stephane
>

Not AFAIK, but you can declare yours constants like vars and after the begin put initiate all of them. Anything like this:

Create Procedure Blablabla...
Declare MyFakeConstantName1 INTEGER; -- Constant
Declare MyFakeConstantName2 INTEGER; -- Constant
....
begin
--Constants Initialization
MyFakeConstantName1 = 3;
MyFakeConstantName2 = 33;
MyFakeConstantName3 = 333;

--Code...
...


regards