Page 1 of 1

Spool & Loops

Posted: Fri Mar 04, 2011 2:03 pm
by tchaithonov
Hey there, how're things?

I am experimenting with the spool object and I wonder if I am trying to print a chart per variable from a model to a spool, how could I suppress a new chart window from popping up each time the loop reaches the printing point? Let me show you what I am talking about:

Code: Select all

%eqname = "eq_abc" %eqlist = {%eqname}.@varlist for !i = 1 to @wcount(%eqlist) %var = @word(%eqlist,!i) {%var}.line(p) next !i
As soon as the spool hits the {%var}.line(p), a new chart window pops up. I want it to print to the spool silently. What are my options?

Tchaithonov

Re: Spool & Loops

Posted: Fri Mar 04, 2011 2:39 pm
by EViews Gareth

Code: Select all

%eqname = "eq_abc" %eqlist = {%eqname}.@varlist for !i = 1 to @wcount(%eqlist) %var = @word(%eqlist,!i) do {%var}.line(p) next !i

Re: Spool & Loops

Posted: Fri Mar 04, 2011 3:02 pm
by EViews Jason
As an alternative to redirecting your printer output to a spool, you could use the spool 'append' command. So instead of

Code: Select all

do {%var}.line(p)
you could use

Code: Select all

myspool.append {%var}.line