Re: Display Arrays
Posted in 1994
On Fri, 14 Oct 1994 dlaskey@xyplex.com wrote: > Is there any way to use a Display Array statement to fill a screen record from > a program array with out having the control default to the user. I am trying > to refresh the screen record from a modified program array and when I use this > statement > > 'display array prog_array into screen_record.*' If you really don't need the display array functions--paging beyond the confines of the current screen-- You can put single displays within a loop. for example if you have 20 rows on your form: for i = 1 to 20 [...Logic to allow you to abort if you don't have enough data to fil the form... ending with exit for] display record_array[i].field_a, record_array[i].field_b, . . record_array[i].field_n to screen_array[i].field_a . . screen_array[i[.field_n end for If you do need to go beyond a single screen, it can be done with similar techniques but you need to manage independent counters for the record and screen arrays. We have a couple programs with the paging and scrolling functions in place here and they are menu-driven and incorporate quite a bit of counter keeping but they work. At the time they were done I could find appropriate mapping to allow paging up and down but was stuck with having to use menu uptions--Yep, Down and Up-- for moving the cursor up and down a single line. In your instance--if you are really only displaying and it is meant to fit on a single screen--that becomes meaningless. Send a line direct if you have further interest. It was a tedious programming effort, but it can be done. > > it waits for the user to hit the ACCEPT key before the user is returned to the > menu. What I would like to have happen is that the screen is refreshed and the > user is placed at the menu (basically just eliminating the need for the user > accepting the refresh by hitting the escape key). > > Thanks By the way, if you can't get arround the display array, I think you will find that Delete, rather than Escape, gets an immediate return to your menu, but that probably depends on the complexity of your display array. -- Con Woodall Colorado St. U. | "Legal action brought against this Veterinary Teach. Hosp. | man for unfortunate or malodorous Ft. Collins CO 80523 | results of heeding his opinions will 303-491-1244 FAX 303-491-4414| be stoutly defended at the bar." Dewey, cwoodall@vth1.vth.colostate.edu | Cheatham & Howe-Atts. to the Tappet Bros --