Re: Display array
Posted in 1996
Simply use display pgm_arr[p_count].* to scr_arr[p_count].* inside a loop that increments p_count. Start the counter at 1 and make sure you don't display beyond the number of elements in the scr_arr screen array. You can put all kinds of attributes on this display statement to make your list look nice. rrela@dc.uba.ar (Ramiro Rela) wrote: :I need to display an array to an opened form and inmediatelly :(without asking the user to press any key) continue the program :execution. :I tried, : DISPLAY ARRAY pgm_arr TO scr_arr.* : EXIT DISPLAY : END DISPLAY : ... :but this sintaxis is not allowed. Any statement must be below an 'ON KEY :key' clause. :AS?TIA. (Any suggestions? Thanks in advance.) :Ramiro. 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