I'm using quit function after prompting the user to continue or abort the execution of the report
If not confirm(text) then
currreport.quit
I wrote this code in the onprereport trigger but appears that nav continue the execution anyway...(e. g. it opens a dialogbox)
BTW, nothing is printed.
I read the help but this thing is not mentioned (I think nav continues executing the onprereport trigger and after that aborts the execution)
Can anyone explain this to me?
Thanks in advance...
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Comments
Now I would like to know why it happened...thank you BBlue
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I set a breakpoint and ran the report. If I choose "No" on the above, the report kept on processing the code after the above but stopped when having finished OnPreReport trigger.
strange indeed... :-k
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
(This is related to the posts above, although I realise that those are about closing the report *after* the request form has run.) For some reason, CurrReport.QUIT on its own doesn't work, and RequestOptionsForm.CLOSE also doesn't seem to have any effect.
See also my post at http://www.mibuso.com/forum/viewtopic.php?f=5&t=29159