|
![](/i/fill.gif) |
"Zarkoff" <zar### [at] yahoo com> wrote:
> Okay, I've probably made another stupid mistake that I'll figure out fifteen
> minutes after I post this, but at the moment I am utterly baffled and
> clueless.
>
>....
> #declare Rv = array[210]
>
> #declare cnt = 1;
>
> #fopen SplnFile Fname read
>
> // -- #while (cnt < 210) <--- this was commented out to check problem
> #if (defined(SplnFile))
> #read (SplnFile, tempz) // this part works
> #declare Rv[0] = tempz;
> #declare cnt = cnt + 1;
> //#end
> #end
>
Just like I said, minutes later a soultion occured to me:
#while (defined(SplnFile)) // I still don't know why POV
#read (SplnFile, tempz) // expects an undeclared identifier here.
#declare Rv[cnt-1] = tempz;
#declare cnt = cnt + 1;
#undef tempz // <------ that makes it work
#end
I'd still like to know why the #read statement requires an undeclared
indentifier in this case. I've seen others use declared identifiers -- I
think.
I'm working around a problem I don't understand yet.
Post a reply to this message
|
![](/i/fill.gif) |