Re: Displaying program arrays
Posted in 1992
> I have a screen array / program array display question. > > In my application there are 2 different forms: page1.per and page2.per. > Each page has an 4 row screen array. Page2 is a horizontal continuation > of page1. In essence I am trying to display a spreadsheet that won't fit on a > the screen width-wise. By using a function key the user can toggle between > the two pages to view the columns that aren't on the current page and by > displaying a 'row number' the user can line the two pages up. > > > I am using the 'display array' statement and must continue to use this > statement because of its 'on key' statements. > > Using arr_curr() I know what line of the program array the user's cursor > is on. Using scr_line() I know what row of the screen array the cursor is > on. I have tried the 'scroll' statement without success. > > Does anyone have any suggestions? Eko I suggest that you look at running your two arrays off a ring menu. This will give you the on key facilities you need. You have to handle the array scrolling yourself by using DISPLAY program_array elements(n) to screen_array(m) statements and SCROLL screen_array UP/DOWN BY x statements all controlled from the ring menu which can have options for First, Last, Next, Previous, Screen switch and Tag plus hidden function key options, etc. One of the other advantages is that you can use highlights DISPLAY progarm_array elements(n) to screen_array(m) ATTRIBUTE(REVERSE) to indicate the currently selected array line and, if you want, all those lines that have been tagged, updated, etc using a different attribute. (Remember to reset on moving as well as highlighting on arrival) Hope this helps. Cheers, Jim -------------------------------------------------------------------- Name: Jim Gordon Internet: jgordon@ssf-sys.DHL.COM Company: DHL Systems Inc Phone: (415) 358-5911 (Work) Address: 1700 S. Amphlett Blvd. (415) 882-9728 (Home) San Mateo, CA 94402 Fax: (415) 571-6429 --------------------------------------------------------------------