Output To report
Posted in 1993
Has anybody else experienced problems with START REPORT TO PIPE in 4.10. I have recently been moving a lot of code from 1.10.03f (ancient) to 4.10.UD2 (Pretty new). In the process I have noticed that a lot of code no longer works as it did. The problem appears to be that START REPORT TO PIPE calls the 4gl routine to take the window out of forms mode. The window does not get refreshed until the next screen manipulation call. Informix TS in the UK tell me that this is a known problem and is not a bug. )-: The proposed solution is to call _efwenter() which will put the screen back into forms mode. I do not wish to scan and change x thousand lines of code. Has anybody else seen this ? Is it a bug ?? Try the code below Versions are I4GL 4.10.UD2 Motorola 88K Unix SvR4 MAIN DEFINE a smallint OPEN WINDOW sw at 10,10 WITH 1 ROWS,40 COLUMNS ATTRIBUTE(BORDER) # The window is now displayed sleep 2 # This clears the window START REPORT swrep TO PIPE "cat >/tmp/stevew" DISPLAY "PLEASE WAIT PREPARING REPORT" AT 1,1 FOR a = 1 TO 10000 OUTPUT TO REPORT swrep(a) END FOR SLEEP 2 FINISH REPORT swrep SLEEP 2 CLOSE WINDOW sw END MAIN REPORT swrep(a) DEFINE a smallint DEFINE b smallint FORMAT PAGE HEADER FOR b = 1 to 5000 END FOR ON EVERY ROW PRINT a END REPORT -- ----------------------------------------------------------------------------- Steve Weet - European Mis - Motorola Cellular Subscriber Group Beechgreen Court, Chineham, Basingstoke, HANTS England. Phone : +44 (0)256 790154 E-Mail stevew@chineham.euro.csg.mot.com Fax : +44 (0)256 817481 Mobile : +44 (0)850 335105 Post : w10075