Re: Fixes to Informix-4gl
Posted in 1992
} }Quoting carl.t.mosley... }} }} How about an improved DISPLAY ARRAY where the user can, for example, }} press the letter "N" and the array will automatically scroll to the }} row(s) beginning with "N"? If I am using DISPLAY ARRAY for some sort of }} "browse" function or a "pick list" I would like to allow a user to quickly }} skip around in the array to find what they are looking for. It is not }} a good situation when I have a screen record of 10 rows and the array }} being displayed has 200 choices and the user has to press "page ahead" }} 20 times to get to the end of the list... }} }Sounds great... but what happens if the data isn't sorted alphabetically? }An example that comes to mind is in a medical system that I just wrote. }There is a pop-up window of languages that people have to select from. }In our area, ENGLISH is first, SPANISH is second, FRENCH third, etc. I }display this by using an internal sequence number assigned by the customer. }Now although there are only about a dozen or two languages and "page ahead" }would only have to be hit twice, how would this work if you had many rows? } Dave, Carl I have written a set of routines that do allow automatic jump to the 'N' records. I would be glad to post, but they are rather lengthy. I have used a combination of routines from DB4GLGEN and my own code. It will also open the array at a particular point based on a query. Note, it does not use DISPLAY ARRAY at all. It uses a set of routines based on the fgl_getkey stuff from DB4GLGEN. Let me know if anyone is interested and I will mail it to you, or to some host. ----------------------------------------------------------------------------- Bob Kane Internet: bob@worms-emh2.army.mil (IP 134.235.9.2) TechDyn Systems Voice: (049) 6241-487306 (WORMS, GERMANY) CMR 421, BOX 706 Fax: (049) 6241-49560 APO AE 09056 CIS: 71054,2661