readline syntax error
Kenneth Brody
kenbrody at bestweb.net
Wed May 7 13:05:35 PDT 2008
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.
> 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