readline syntax error

GCC Consulting gccconsulting at comcast.net
Wed May 7 14:28:33 PDT 2008



> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at bestweb.net]
> Sent: Wednesday, May 07, 2008 4:06 PM
> To: rkreiss at gccconsulting.net
> Cc: gccconsulting at comcast.net; filepro-list at lists.celestial.com
> Subject: RE: readline syntax error
> 
> Quoting Richard Kreiss (Wed, 7 May 2008 15:41:42 -0400):
> 
> > I again misquoted myself.
> >
> > The code was:
> >
> > Xx=readline(aa,ab)
> > If:ab eq ""
> > Then: RETURN
> 
> As I said previously (see below, since you are top-posting), you never
> created a field "ab" in the above code.  Because there is no such
> field,
> you cannot pass it to readline().  Hence, the syntax error.  The reason
> you got it at readline() is because that is the first reference to this
> non-existent field.

In this case must ab() be declared prior to readline or can it be anywhere in the processing table?

Richard

> 
> > When I, at line 44 aa=open(pfile,"rt");ab(1024,*)
> >
> > That is when the syntax error at readline() stopped.
> 
> Because you have now defined a field "ab".
> 
> > I think we are both saying the same thing but a bit differently.
> 
> It is not the cast of ab(1024,*), but the fact that you have now
> declared
> field "ab" to exist.  (In this case, you have done it explicitly.)  Now
> that
> field "ab" exists, you can pass it to readline().  (Or do anything else
> with
> it that you can do with a field.)
> 
> [...]
> >> > Problem was that ab was uncast.  When I added
> >> > ab(1024,*)=readline(aa,ab), the syntax error disappeared.
> >> >
> >> > Ken, ab is only referenced in this part of the program.
> >>
> >> The problem is not that ab was "uncast", but "undefined".  The code
> >> snippet you included had only one reference to "ab" -- inside the
> >> READLINE() call.
> >> If you never actually defined a variable "ab", then it is a syntax
> >> error to attempt to pass the non-existent field to READLINE().
> [...]
> 
> --
> Read the truth behind the movie "Expelled" at
> <http://www.ExpelledExposed.com>
> --
> KenBrody at BestWeb dot net        spamtrap:
> <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com




More information about the Filepro-list mailing list