Why am I getting a syntax error?

Kenneth Brody kenbrody at bestweb.net
Wed Feb 8 11:34:35 PST 2006


Quoting Dan Coutu (Wed, 08 Feb 2006 14:28:24 -0500):
[...]
> >> lookup fil=(Filename) r=(RecordNo) -ex
[...]
> >> the declared variable RecordNo.) Well, this doesn't work because you
> >> can't use a variable for the name of the lookup file. Bummer.
> >
> > Excuse me?  I use the above all the time, as I'm sure do 90% of the
> > regulars on this list.
> >
> > Can you define "doesn't work"?
> >
> Yes, I get a syntax error pointing to (Filename) as the source of
> trouble. This is with version 5.0.14D4

Then you have some other problem.

The following 3-line prc will not give a syntax error:

    declare Filename
    declare RecordNo
    lookup fil=(Filename) r=(RecordNo) -ex

[...]

--
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