Re: Help needed with displaying arrays in 4gl
Posted in 1998
Topics: SQL Development & Query Writing, Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
In article <35E67353.65A7@bayer.co.uk>, Peter.Lancashire.PL1@bayer.co.uk wrote: > David Robertson wrote: > > > > This query concerns the use of the DISPLAY ARRAY statement to display a > > program array containing more rows than can be displayed onto the screen > > array. Is there a simple, elegant, way of forcing the DISPLAY ARRAY > > statement to initially display a specific section of a program array, > > rather than the first screenful of rows ? > > For example, displaying a program array containing 100 rows into a screen > > array with 10 rows will always initially display rows 1-10. Can it be > > made to display rows 51 to 60, and still allow subsequent scrolling up and > > down the array ? > > I could do this using scroll cursors, but wonder if there is an easier, > > simpler way. > > > > Thanking you in advance for any help. > > > The short answer is no. > > A slightly longer answer is that with connvoluted use of INPUT ARRAY you > could do it but slowly, so still really no. > > You could write your own code using plain DISPLAY. This is not simple. > So no again. > > You could use Dynamic 4GL, which I believe does this: one of the holy > grails (can there be more than one?) of 4GL programmers. > > Scroll cursors have the advantage that they can have as many rows as > will fit on your disk. DISPLAY ARRAY requires a fixed array in memory. > In VM systems you can make this very big without incurring that much > penalty but it is still a limit. Mind you, there is a psychological > limit on the number of rows a user will be willing to scroll through > which is probably lower than a tolerably large array size. > -- > Peter Lancashire > Information Systems Specialist, Bayer plc > Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK > Tel: +44-1635-562258, Fax: +44-1635-562281 > --- > If all else fails, read the instructions AND the release notes. > All opinions are my own and not those of Bayer plc. > My Internet plumbing does not allow me to mail and post news together. > Sorry. > --- > Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/ When you indicate in a program a DISPLAY ARRAY statement, it always begin at the first row and its impossible programming that the first row showed be another different to the real first (number one) > -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum