>Hi,
>
>I have a code in one of the programs that, on error, prints the error report. Here is simplified code:
>
>
>CREATE CURSOR PROBALERT ( PROB_DESCR c(70), ERR_MSG c(250) )
>
>INSERT INTO PROBALERT ( PROB_DESCR, ERR_MSG ) VALUES ;
> ( "Problem!", ALLTRIM(pcErrorMsg) )
>
>SELECT PROBALERT
>report form Problem_Report NEXT 1 NOCONSOLE to printer
>
>
>The problem was that the field ERR_MSG c(250) was not big enough to hold the entire error message, so I changed the field type to memo.
>The code, otherwise, is exactly the same
>
>CREATE CURSOR PROBALERT ( PROB_DESCR c(70), ERR_MSG M )
>
>INSERT INTO PROBALERT ( PROB_DESCR, ERR_MSG ) VALUES ;
> ( "Problem!", ALLTRIM(pcErrorMsg) )
>
>SELECT PROBALERT
>report form Problem_Report NEXT 1 NOCONSOLE to printer
>
>
>The problem is that after making the field ERR_MSG M the report prints on 100s and 100s pages, repeating the same page over and over.
>
>What am I missing?
I just understood the problem. My report form is made of Page Header only. And so the MEMO (being very long) in the Header causes the report printing over and over. I think when I move the MEMO to the Detail band, the problem should be resolved.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham