Re: 4GL Input Array Questions
Posted in 1998
Jonathan Leffler wrote: > Tony Marasco wrote: > > A colleague and I were discussing if it is possible to > > programmatically go to specific rows while in an INPUT ARRAY > > statement. We could not find anything in the books and > > he has taken several Informix classes with no mention of this. > > NEXT FIELD works fine for columns, but the current row only. > > > > Can this be done in 4GL? > > Yes, but it is painful enough that I'd never do it. > > On the other hand, D4GL has a function call which locates a > specified row in the program array on a specified line in the > screen array, and can be used in both INPUT ARRAY and DISPLAY ARRAY. I have utilized the following functions in I4GL to do what you describe: LET p_curr = arr_curr() - the arr_curr() function returns the row in the program array LET sc_curr = scr_line() - the scr_line() function returns the screen line in the screen array Once you know this info - you can manipulate the screen any way you want. Greg > > > -- > Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) > Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN > #include <disclaimer.h>