home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.informix
- Path: sparky!uunet!seas.smu.edu!convex!egsner!lerami!cmptrc!andy
- From: andy@cmptrc.lonestar.org (Andy Hart)
- Subject: interrupting reports
- Message-ID: <Btwuzn.2y9@cmptrc.lonestar.org>
- Date: Tue, 1 Sep 1992 17:52:35 GMT
- Distribution: USA
- Organization: CompuTrac Inc., Richardson TX
- Keywords: informix report interrupt int_flag
- Lines: 35
-
-
- Can someone help with this, pls?
-
- How does one interrupt an I-4GL report? For instance, why doesn't
- this work?
-
- ...
- FOREACH cursor INTO variable
- IF int_flag THEN
- EXIT FOREACH
- ELSE
- OUTPUT TO REPORT blahblah
- END IF
- END FOREACH
- FINISH REPORT
- ...
-
- Actually, I've tried placing the test for the interrupt in various
- locations and have tried putting a FINISH REPORT statement in the
- TRUE clause of the IF, etc.
-
- The only way I have now of interrupting a report is to wack it on the
- head with a QUIT signal. Do I need to defer the QUIT interrupt and
- trap for that, then turn it back on when I'm done. (Actually, I just
- thought of this as I typed this message, so I'll go try that now...)
-
- Thanks!
- Andy
-
- --
- +--------------------------------------------------------------------+
- | Andrew Hart | CompuTrac, Inc. |
- | (214) 234-4241 | 222 Municipal Drive |
- | andy@cmptrc.lonestar.org | Richardson, TX 75080 |
- +--------------------------------------------------------------------+
-