values do not update

Susana Cardoso Pereira susana.proclira at GMAIL.COM
Thu May 31 09:05:59 EDT 2007


Hi José,

Try this:

(......)
t=1
while (t<=5)
'set t 't
(...)
t=t+1
endwhile

Sue



On 5/31/07, Jose Augusto Paixao Veiga <jaugusto at cptec.inpe.br> wrote:
>
> Dear all,
> In a short script I am trying to update values to include in my graphics
> for
> each time. For the first time it works (t=1), however in the following
> times
> (t>1) the values are not updated in my graphic output. The values that
> rise
> are "grid". Where am I making mistakes?
> Bellow I put part of the script.
>
> I really appreciate helps
>
> Thanks in advance
>
> Veiga
>
>
> 'reinit'
> 'open file.ctl'
>
> i=1
> while (i <= 5)
> 'set t ' i
>
> 'd ge/1e03'
> rc=sublin(result,1)
> nval=subwrd(rc,4)
> ge=substr(nval,1,4)
>
> ge = ge
>
> 'draw string 0.7 7.5 '%ge
>
> 'draw rec 2.5 2.0 4.5 3.5'
>
> pull n
> 'c'
>
> i=i+1
> endwhile
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070531/0385030a/attachment.html 


More information about the gradsusr mailing list