Re: Declaring variables in a procedure?
- Posted by Kat <gertie at PELL.NET> Aug 19, 2001
- 365 views
On 19 Aug 2001, at 10: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 > > If I only try to declare one type in the procedure, such as just integer, it > works fine, but if I try to declare more than one I get an error. How are you declaring the others? This should work fine: procedure whatever() integer x, y, z sequence a, b, c atom p x = 1 y = 2 z = 3 p = 0 a = "" b= {} c="abc" end procedure Kat