Re: Display of arrays
Posted in 1999
Guido Cirilli wrote: > I have to display more arrays like this: > > DEFINE array1 ARRAY[100] OF RECORD ... END > DEFINE array2 ARRAY[100] OF RECORD ... END > > (array1 and array2 can be of the same type or not) > I have to display them in more windows: > array1 in window1/form1 > array2 in window2/form2 > (form1 and form2 can be the same or not) > When i display the first array, i have to do this: > i have to permit to go to a particular row of the array (i.e. > array1[9] which is positioned at the 3rd row of the screen array) > then, pressing a key (i.e. CONTROL-N) i have to display the second > window with the second array, but AT THE FIRST ROW OF THE SCREEN > ARRAY I HAVE TO DISPLAY THE 9TH ROW OF ARRAY2 AND I CAN ALWAYS GO > UP (i.e. with function keys) TO DISPLAY ROWS FROM 1 TO 8. > In other words: can i directly position the cursor to a particular > row of an array, displaying it at the first screen row? Currently available versions of Classic 4GL do not have this ability without needing considerable programming effort (pace Dennis and Art). However, Dynamic 4GL has a function dialog.setcurrline() which allows you to place a given line of the program array on a given line of the screen array. In Classic 4GL release 7.30, this facility will be back-ported from Dynamic 4GL. There are also due to be a bunch of other useful additions to INPUT ARRAY in particular -- you can check the SEIUG web site (http://www.iiug.org/~seiug/, and the trailing slash is reputedly significant) for more info. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>