home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / informix / 2769 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!emory!not-for-mail
  2. From: bob@worms-emh2.army.mil (Bob Kane)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re:  Fixes to Informix-4gl
  5. Date: 21 Dec 1992 11:58:04 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 35
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1h4t2sINNhpv@emory.mathcs.emory.edu>
  11. Reply-To: bob@worms-emh2.army.mil (Bob Kane)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1729>
  14.  
  15. }
  16. }Quoting carl.t.mosley...
  17. }} 
  18. }}   How about an improved DISPLAY ARRAY where the user can, for example,
  19. }} press the letter "N" and the array will automatically scroll to the 
  20. }} row(s) beginning with "N"? If I am using DISPLAY ARRAY for some sort of
  21. }} "browse" function or a "pick list" I would like to allow a user to quickly 
  22. }} skip around in the array to find what they are looking for.  It is not 
  23. }} a good situation when I have a screen record of 10 rows and the array 
  24. }} being displayed has 200 choices and the user has to press "page ahead"
  25. }} 20 times to get to the end of the list...
  26. }} 
  27. }Sounds great... but what happens if the data isn't sorted alphabetically?
  28. }An example that comes to mind is in a medical system that I just wrote.
  29. }There is a pop-up window of languages that people have to select from.
  30. }In our area, ENGLISH is first, SPANISH is second, FRENCH third, etc.  I
  31. }display this by using an internal sequence number assigned by the customer.
  32. }Now although there are only about a dozen or two languages and "page ahead"
  33. }would only have to be hit twice, how would this work if you had many rows?
  34. }
  35. Dave, Carl
  36.  
  37. I have written a set of routines that do allow automatic jump to the 'N' 
  38. records.  I would be glad to post, but they are rather lengthy.  I have
  39. used a combination of routines from DB4GLGEN and my own code.  It will also
  40. open the array at a particular point based on a query.  Note, it does not 
  41. use DISPLAY ARRAY at all.  It uses a set of routines based on the fgl_getkey
  42. stuff from DB4GLGEN.  Let me know if anyone is interested and I will mail it
  43. to you, or to some host.
  44.  
  45. -----------------------------------------------------------------------------
  46. Bob Kane                   Internet: bob@worms-emh2.army.mil (IP 134.235.9.2)
  47. TechDyn Systems               Voice: (049) 6241-487306   (WORMS, GERMANY)
  48. CMR 421, BOX 706                Fax: (049) 6241-49560
  49. APO AE 09056                    CIS: 71054,2661
  50.