virus1002
9th August 2010, 19:40
Hello everyone! I'm having a problem with choice.print.data.
The code inside on.choice is not executing. When I debug this piece of code, the execute(print.data) function isn't doing anything, and the control skips directly to the choice.print.data -> after.choice event, without executing the on.choice.
choice.cont.process:
before.choice:
check.all.input()
after.choice:
execute(print.data)
choice.print.data:
on.choice:
set.report.global.variables()
if not tccom.dll0010.open.report(1, "", 1, g.system.language, 1) then
|* display is not allowed as device
job.process.error = true
choice.again() |* to break this choice.print.data event
endif
if frm.prnt.sel.r = tcyesno.yes then
if not tccom.dll0010.open.report(
2, "", 0, g.system.language, 2) then
|* display is not allowed as device
job.process.error = true
choice.again()
|* to break this choice.print.data event
endif
endif
|* no job statements hereafter, the standard program (BaanERP: 4GL
|* Engine) takes over control and detects the job.process.error
START.DLL.UI(print.prices.via.price.matrix, IFERRNAC, "tccom99997")
#pragma used message tccom99997
|* Printing...
after.choice:
tccom.dll0010.close.reports()
I don't know if i'm missing anything, but I hope someone can help me with this error.
Thanks in advance!
The code inside on.choice is not executing. When I debug this piece of code, the execute(print.data) function isn't doing anything, and the control skips directly to the choice.print.data -> after.choice event, without executing the on.choice.
choice.cont.process:
before.choice:
check.all.input()
after.choice:
execute(print.data)
choice.print.data:
on.choice:
set.report.global.variables()
if not tccom.dll0010.open.report(1, "", 1, g.system.language, 1) then
|* display is not allowed as device
job.process.error = true
choice.again() |* to break this choice.print.data event
endif
if frm.prnt.sel.r = tcyesno.yes then
if not tccom.dll0010.open.report(
2, "", 0, g.system.language, 2) then
|* display is not allowed as device
job.process.error = true
choice.again()
|* to break this choice.print.data event
endif
endif
|* no job statements hereafter, the standard program (BaanERP: 4GL
|* Engine) takes over control and detects the job.process.error
START.DLL.UI(print.prices.via.price.matrix, IFERRNAC, "tccom99997")
#pragma used message tccom99997
|* Printing...
after.choice:
tccom.dll0010.close.reports()
I don't know if i'm missing anything, but I hope someone can help me with this error.
Thanks in advance!