Re: Informix 4GL Screen Question. Top/Bot possible?
Posted in 1997
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
Raju Matthew Kallarackal wrote: > > In Informix 4GL: > > within the Input Array Construct, > > has anyone implemented a Top / Bottom Feature > to do a fast-step to the top or bottom of the array. > I almost expected that to be built in along with > NEXT and PREVIOUS. > > I could not figure a way to change the internal representation > for CURRENT Row. > > Any tip would be appreciated. The tip is don't use INPUT ARRAY. :-) Use a standard SCROLL CURSOR with an ARRAY form. Put a menu across the top, with NEXT, PREV, FIRST, LAST..., etc. Map the cursor keys to NEXT and PREV, then use the SCROLL command to move things up or down and display the appropriate record in the blank. If you're clever, you can then implement the skip routine lost in PERFORM, so that 4P or 4<UP ARROW> will move you 4 records up etc. 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! | +------------------------+-----------------------------------------+