Subject | Re: constant un trigger/procedure |
---|---|
Author | emb_blaster |
Post date | 2010-03-11T13:25:09Z |
--- In firebird-support@yahoogroups.com, "svanderclock" <svanderclock@...> wrote:
Create Procedure Blablabla...
Declare MyFakeConstantName1 INTEGER; -- Constant
Declare MyFakeConstantName2 INTEGER; -- Constant
....
begin
--Constants Initialization
MyFakeConstantName1 = 3;
MyFakeConstantName2 = 33;
MyFakeConstantName3 = 333;
--Code...
...
regards
>Not AFAIK, but you can declare yours constants like vars and after the begin put initiate all of them. Anything like this:
> 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
>
Create Procedure Blablabla...
Declare MyFakeConstantName1 INTEGER; -- Constant
Declare MyFakeConstantName2 INTEGER; -- Constant
....
begin
--Constants Initialization
MyFakeConstantName1 = 3;
MyFakeConstantName2 = 33;
MyFakeConstantName3 = 333;
--Code...
...
regards