Re: 4GL after row/next field statement
Posted in 1993
In article <dennisp.752859173@puma> dennisp@informix.com (Dennis Pimple) writes: >lester@access.digex.net (Lester Knutsen) writes: [Stuff Deleted] >The "common" approach to this is to add a NOENTRY field in the perform >screen as the last field of the screen record, Put the INPUT ARRAY >statement in a WHILE loop, and keep a counter so that when we want to >go back a row we can EXIT INPUT, loop back up, reenter INPUT ARRAY, and >then use NEXT FIELD to the NOENTRY field to go down to the desired row. [Code Deleted] The only problem with this is that it looks terrible when you are on the last few rows of the array and you do the 'exit - loop' routine to scroll back to the row. The scrolling could take forever on DOS, also. Granted, it is the best solution for the problem, yet, it makes for inconsistent coding, also on Informix's part. Every other statement that utilizes a 'CONTINUE XXXX' works how most programmers want it to. So, why not a 'CONTINUE ROW' ??? ( My opinion, ONLY!! :-) The fastest and easiest solution I have is after each field test if the user hit a down or up arrow by: IF fgl_lastkey() = fgl_keyval("down") OR fgl_lastkey() = fgl_keyval("up") THEN # Do what you want END IF -- Robert Minter Data Systems Support Programmer, Software Development Orange, CA internet: rob@dssmktg.com Tel: 714.771.0454 bangpath: uunet.uu.net!dssmktg!rob Fax: 714.771.3028