|
![](/i/fill.gif) |
"stevenvh" <nomail@nomail> wrote:
> Warp <war### [at] tag povray org> wrote:
> > stevenvh <nomail@nomail> wrote:
> > > MyTable[0][i] = i + 1
> >
> > You have to #declare that.
> >
> > (Also, you are not incrementing 'i' anywhere.)
> >
> > --
> > - Warp
>
> Thanks for the reply. The increment got lost in copying the code (I removed a
> lot of code to get to the core of the problem). I have #declared MyTable, even
> with initialization values (first line of the code), and i is declared as
> #local, which should be as good as #declare. Changing it to #declare doesn't
> solve the problem, anyway.
I thought the problem was in the array since the cursor was placed at the
position of the second index, but even with the code below I get the error. The
error points to the first i in the "i = i + 1" statement.
**** Code **********************************
#macro Init_Table()
#declare i = 0;
#while (i < 6)
i = i + 1
#end
#end
Init_Table()
Post a reply to this message
|
![](/i/fill.gif) |