Re: Declaring variables in a procedure?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sunday 19 August 2001 13:40, dstanger at belco.bc.ca wrote:
>
> Good Morning,
>
> I am trying to declare variables inside a procedure like so:
>
> procedure whatever()
>
> integer x, y, z
> x = 1
> y = 2
> z = 3
>
> sequence other_stuff
> other_stuff = {}
>
> ....bunch of code....
>
> end procedure

Just make all the declarations before you execute any code:
procedure foo()
 integer x,y,z 
 sequence stuff

 x = 1
 y = 2
 z = 3 
 s = "Stuff"
.....
end procedure

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu