Re: Display array
Posted in 1996
Topics: Stored Procedures & SPL
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. I think what you mean is: FOR loop = 1 TO no_recs IF loop > max_lines THEN EXIT FOR END IF DISPLAY pgm_arr[loop].* TO scr_arr[loop].* END FOR Where no_recs are the number of records in the program array and max_lines are the number of array elements on the screen. I am assuming pgm_arr is an ARRAY of RECORDs. Hope that helps, -- Mark. +-------------------------------------------------------------------------+ |Mark D. Stock - The West Solutions Group http://www.west.co.za | | The Informix FAQ is at http://www.iiug.org | |mailto:marks@west.co.za +------------------------------------------------+ |Tel: +27 11 803 2151 |If it doesn't work... force it! | |Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! | |Cell: +27 83 250 2325 |Well, that's how I code anyway! | +------------------------+------------------------------------------------+