Re: Input Array Problem under AIX 3
Posted in 1995
Axel Granholm (granholm@digex.net) wrote: : Here is a question to those who can help with INPUT ARRAY. : This code snippit works under SCO but not under AIX: : If I display the value of pa_slots.[p_curr].data after the assignment, the value DOES get : defaulted. If I pause after the DISPLAY statement, the data is on the screen. When : control returns to the INPUT ARRAY statement, the data is cleared. : Any clues? I'm guessing the AIX version is firing the sequence of control blocks in a slightly different order (i.e.: a bug). You might try changing the BEFORE ROW control block to a BEFORE FIELD data one and see if the problem goes away. A NEXT FIELD data statement placed as show below might be a workaround. : CODE SNIPPIT: : -------------------------------------------------------------------------- : INPUT ARRAY pa_slots WITHOUT DEFAULTS FROM sr_slots.* : BEFORE ROW : LET p_curr = scr_line() : # : # If this is not the first line, default the data from one element to the next : # : IF p_curr != 1 THEN : IF LENGTH(pa_slots[p_curr].data) != 0 THEN : LET pa_slots[p_curr].data = : pa_slots[p_curr-1].data : DISPLAY pa_slots[p_curr].data TO sr_slots[p_curr].data >>>>>> NEXT FIELD data : END IF : END IF : END INPUT ======================================================================= Dennis J. Pimple dennisp@informix.com Opinions expressed Senior Consultant -------------------- are mine, and do not Informix Software Inc Voice: 303-850-0210 necessarily reflect Denver Colorado USA Fax: 303-779-4025 those of my employer.