#19183 - 11/30/05 04:10 PM
Error Message
|
OL Expert
Registered: 02/21/01
Posts: 669
|
What can you tell me about the following error message? 0 - 14:38:32 PTK0001 : Loop too long. Run error
Thanks
_________________________
Uomo Del Ghiaccio --------------------
|
|
Top
|
|
|
|
#19185 - 11/30/05 06:27 PM
Re: Error Message
|
OL Expert
Registered: 02/21/01
Posts: 669
|
These are the only Macros in the form.
%set(&DHL_StartLine, 0) %for([i]¤t.line,30,1,45) %if('/' = @(¤t.line,3,3)) %if('/' = @(¤t.line,6,6)) %if('/' = @(¤t.line,29,29)) %if('/' = @(¤t.line,32,32)) %set(&DHL_StartLine, ¤t.line) %endif() %endif() %endif() %endif() %endfor()
set(&DHL_StartLine, 0) for(¤t.line,30,1,45) if(and('/' = @(¤t.line,3,3), '/' = @(¤t.line,6,6))) if(and('/' = @(¤t.line,29,29), '/' = @(¤t.line,32,32))) set(&DHL_StartLine, ¤t.line)
endif() endif() endfor()[/i]
This is used with a bunch of data selections such as "=@(&DHL_StartLine + 124 ,1,55), =trim(@(&DHL_StartLine + 112 ,1,22)), or =@(&DHL_StartLine + 33,1,35) + @(&DHL_StartLine + 34,1,2)".
moveto(0,0) SetStyle(&LetterGothic) margin(0,0.182) rmoveto(stringwidth(' '),0) rmoveto(neg(stringwidth(' ')),0) Define(&z_,integer,0) for(&z_,5,1,12) if(ne(trimleft(@(&z_,67,100)),'')) if(not(gt(pos('C-D:',@(&z_,50,2000)),0))) show(trimright(trimleft(@(&z_,67,100)))) crlf(0.1000) endif() endif() endfor()
_________________________
Uomo Del Ghiaccio --------------------
|
|
Top
|
|
|
|
#19187 - 12/01/05 06:20 PM
Re: Error Message
|
OL Expert
Registered: 02/21/01
Posts: 669
|
Here is the macro after the changes, but I'm still getting the loop errors.
define(&z_, integer, [i]¤t.line) set(&DHL_StartLine, 0) for(&z_,30,1,45) if(and('/' = @(&z_,3,3), '/' = @(&z_,6,6))) if(and('/' = @(&z_,29,29), '/' = @(&z_,32,32))) set(&DHL_StartLine, &z_) endif() endif() endfor() [/i]
_________________________
Uomo Del Ghiaccio --------------------
|
|
Top
|
|
|
|
#19189 - 12/02/05 10:10 AM
Re: Error Message
|
OL Expert
Registered: 02/21/01
Posts: 669
|
I have somewhere between 150 to 200 lines on each page. I will report the issue.
Thanks
_________________________
Uomo Del Ghiaccio --------------------
|
|
Top
|
|
|
|
|
|