home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2706 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.1 KB  |  65 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!aburt
  3. From: aburt@mnemosyne.cs.du.edu (Andrew Burt)
  4. Subject: Re: Display array highlist
  5. Message-ID: <1992Dec15.145006.8036@mnemosyne.cs.du.edu>
  6. Organization: University of Denver, Dept. of Math & Comp. Sci.
  7. References: <memo.808387@cix.compulink.co.uk>
  8. Date: Tue, 15 Dec 92 14:50:06 GMT
  9. Lines: 54
  10.  
  11. In <memo.808387@cix.compulink.co.uk> shemminga@cix.compulink.co.uk (Stuart Hemming) writes:
  12.  
  13. >In <1992Dec10.181239.29704@mnemosyne.cs.du.edu> I, Andrew Burt, wrote:
  14.  
  15. >> But, seriously, here's one that I haven't researched enough to know
  16. >> that it can't be done:
  17. >> 
  18.                          !!!!!!
  19. >> Is there any way to display a report to a window, and scroll through
  20.                          ^^^^^^
  21. >> it (up/down)?
  22.  
  23. >In your report include:
  24.  
  25. >OUTPUT
  26. >        REPORT TO PIPE "less"  -- Assumes you have less. Pick it up at
  27. >                               -- FTP site near you NOW!
  28.  
  29. >The only problem with list is that you will always get the output on
  30. >the screen.
  31.  
  32. (Actually, most modern 'more's can backscroll.  That isn't the point.)
  33.  
  34. The only problem is that the output is on the WHOLE screen, not in a WINDOW.
  35.  
  36. I want to say, "REPORT TO WINDOW foo".
  37.  
  38. Just for grins, I did get this idea implemented.  I consider the manner
  39. of solution ugly:  writing 4gl-C wrappers for fopen, fgets, etc. then
  40. defining a screen form N chars wide in M rows, for use in a display array.
  41. It's ugly because (once again) you either have to use a fixed size array
  42. with display array or roll your own display code (which to me seems insane,
  43. since that's the kind of thing 4gl is supposed to do for you!).  This is
  44. a lot more code than something like
  45.  
  46.     OPEN WINDOW foo AT 5,5 WITH 10 ROWS, 60 COLUMNS
  47.     ...
  48.     REPORT TO WINDOW foo
  49.  
  50. "report to window" should automatically allow scrolling, like display array.
  51.  
  52. Heck, even having a
  53.  
  54.     DISPLAY FILE "report.out" TO WINDOW foo
  55.  
  56. would be good enough for me.
  57.  
  58. Are you listening, Informix?
  59. Your customers are speaking... rumble, rumble...  :-)
  60. -- 
  61.  
  62. Andrew Burt                                  aburt@du.edu
  63.  
  64. "But if he was dying he wouldn't bother to carve "Aaaaargh", he'd just say it."
  65.