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
#42742 - 03/15/13 08:44 AM I can only use two repeat - until loops
a.a.c Offline
OL Newbie

Registered: 03/08/12
Posts: 11
Hello,

I am only able to use two repeat - until loops until my global variables reset.

I have a set up like below:

repeat
repeat
repeat
until
until
showpage
until

on the return to the third repeat loop my global variables are reset ruining everything... They are maintained within the other two loops.

Is the showpage causing an issue?

Any help is appreciated!
Thanks
AAC

Top
#42743 - 03/15/13 09:06 AM Re: I can only use two repeat - until loops [Re: a.a.c]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
a.a.c,

showpage is only used to create a physical page, it doesn't reset global variables. So it should not be a problem.

Can you post your real code? Perhaps if we see it, we'll be able to figure out what's wrong with it.

Regards,
Raphaël Lalonde Lefebvre

Top
#42751 - 03/15/13 10:54 AM Re: I can only use two repeat - until loops [Re: a.a.c]
a.a.c Offline
OL Newbie

Registered: 03/08/12
Posts: 11
Hi Raphaël,

Its a bit too long to paste at the moment.

I have worked around the issue by defining a local variable - the value is no longer lost - I don't know if this gives any clues!

Thanks,
Andy.

Top
#42752 - 03/15/13 11:02 AM Re: I can only use two repeat - until loops [Re: a.a.c]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Only thing I can think of is that after your showpage, perhaps you call a page or overlay that has a code on it that resets the global variables. In that case, yes, they would be lost.

Top