Kevin_Rell
29th April 2002, 21:43
I have a Baan report that is giving me a "Bad skip value" error. The report keeps running and gives good output but I have to click OK on the message box. I debugged the report and found that the error is coming from some of the Baan-generated report code.

How do figure out what is causing this error?
How do I fix it?

Thanks,
Kevin

OmeLuuk
1st May 2002, 11:08
You should debug the report, check where the error starts, judge the conditions on which the error occurs, see the variable values, check on which report section you are, then trace back to which layout part you are in. You can give different conditions on which layouts should be printed or not. I think one of those is not correct.

steveauckly
1st May 2002, 17:19
Are you using the skip.to() function in your code? I have seen this function get the line numbers out of whack before. Unfortunately, I have found no good way to fix it. If you are using skip.to(), try tracking the line number in debugger, and make sure you are not trying to skip to a previous line.

Kevin_Rell
3rd May 2002, 15:22
I guess r.skip.value cannot be negative when the function r.skip.cmd() is called. I found that the bad code was in the header section of the report when I stepped through in debug mode. I checked the header layout and found two "stray" lines outside of the true header lines. I couldn't remove them from the layout so I deleted the layout and recreated it. All fixed!

Thanks for your help.
Kevin