home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / informix / 1875 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.5 KB  |  47 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!seas.smu.edu!convex!egsner!lerami!cmptrc!andy
  3. From: andy@cmptrc.lonestar.org (Andy Hart)
  4. Subject: interrupting reports
  5. Message-ID: <Btwuzn.2y9@cmptrc.lonestar.org>
  6. Date: Tue, 1 Sep 1992 17:52:35 GMT
  7. Distribution: USA
  8. Organization: CompuTrac Inc., Richardson TX
  9. Keywords: informix report interrupt int_flag
  10. Lines: 35
  11.  
  12.  
  13.     Can someone help with this, pls?
  14.  
  15.     How does one interrupt an I-4GL report?  For instance, why doesn't
  16.     this work?
  17.  
  18.     ...
  19.     FOREACH cursor INTO variable
  20.       IF int_flag THEN 
  21.     EXIT FOREACH
  22.       ELSE
  23.     OUTPUT TO REPORT blahblah
  24.       END IF
  25.     END FOREACH
  26.     FINISH REPORT
  27.     ...
  28.  
  29.     Actually, I've tried placing the test for the interrupt in various 
  30.     locations and have tried putting a FINISH REPORT statement in the 
  31.     TRUE clause of the IF, etc.
  32.  
  33.     The only way I have now of interrupting a report is to wack it on the
  34.     head with a QUIT signal.  Do I need to defer the QUIT interrupt and 
  35.     trap for that, then turn it back on when I'm done.  (Actually, I just
  36.     thought of this as I typed this message, so I'll go try that now...)
  37.  
  38.     Thanks!
  39.                   Andy
  40.  
  41. -- 
  42. +--------------------------------------------------------------------+
  43. |   Andrew Hart                   |  CompuTrac, Inc.                 |
  44. |   (214) 234-4241                |  222 Municipal Drive             |
  45. |   andy@cmptrc.lonestar.org      |  Richardson, TX  75080           |
  46. +--------------------------------------------------------------------+
  47.