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 printerThe 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.
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 printerThe 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.