IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#21119 - 03/16/09 03:35 PM Overflow.
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
I am working on a packing slip that could go to multiple pages. I want to make the multiple pages different than the first. So what I have so far is this statement calling page 4 if they have 10 lines or less. I want to write it so that if the lines are greater than 10 it executes Page5 instead. I am not sure how to go about that. Any help and/or pushes in the right direction would be appreciated.

Thanks!

define(&pagecount,integer,0)
define(&i,integer,0)

&pagecount := &NumberOfLineItems/10
if( mod(&NumberOfLineItems,10)<>0 )
&pagecount:=&pagecount+1
endif()

for(&i,1,1,&pagecount)
execpage('Page4')
showpage()

Top
#21120 - 03/16/09 04:02 PM Re: Overflow.
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Aimee,

I am still working on an overflow example in the issue you currently have open with us. It will include a similar condition, so it is best that we continue to work on the issue that is already opened.

Regards,
Rapha

Top


Moderator:  cosimo, OL Newsgroup Support