- Code: Select all Expand view
- #include "Fivewin.ch"
#include "Report.ch"
FUNCTION MAIN()
REP01( "1" )
REP01( "2" )
RETURN NIL
FUNCTION REP01( cNum )
LOCAL oRpt
USE TEST
REPORT oRpt TITLE "TEST" + cNum PREVIEW
COLUMN TITLE "St" DATA Test->State
COLUMN TITLE "First Name" DATA Test->First
COLUMN TITLE " Salary" DATA Test->Salary
END REPORT
oRpt:CellView()
ACTIVATE REPORT oRpt
CLOSE TEST
RETURN NIL
shows only the first preview and then terminate leaving an error.log containing
Error description: Error BASE/1132 Bound error: array access
Stack Calls
===========
Called from: .\source\classes\RPREVIEW.PRG => TPREVIEW:BUILDWINDOW(448)
Called from: .\source\classes\RPREVIEW.PRG => TPREVIEW:NEW(125)
Called from: .\source\classes\RPREVIEW.PRG => RPREVIEW(1462)
Called from: .\source\classes\REPORT.PRG => (b)TREPORT:NEW(180)
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE(873)
Called from: REP2.prg => REP01(29)
Called from: REP2.prg => MAIN(8)
EMG