Re: RDS vs Compiled?
Posted in 1997
"Patric Stephan" <past0001@stud.uni-sb.de> wrote: ...snip... :2) :define : ok smallint :Case ok : when 1 : display "1" : when 2 : display "2" : otherwise : display "otherwise" :end case : :if ok = 1 then: :RDS: only one display -> 1 :I4gl: 3 displays -> 1 2 otherwise I haven't ever seen such behaviour from i4gl. It also will allways execute at most one part of any case statement. If that's not the case with your version you have a very serious defect in it. Another thing is that RDS will initialize variables for you. In the above case you never set ok to anything. In i4gl it then gets some random value (whatever is in the location in memory where the ok variable gets allocated). For compatible execution you will have to allways initialize variables in some way (let statement or whatever) before you use them in some other way. Nils.Myklebust@idg.no NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway My opinions are those of my company The Informix FAQ is at http://www.iiug.org