Why am I getting a syntax error?

Kenneth Brody kenbrody at bestweb.net
Wed Feb 8 12:32:12 PST 2006


Quoting Jeff Harrison (Wed, 8 Feb 2006 12:03:53 -0800 (PST)):

> --- Dan Coutu <coutu at snowy-owl.com> wrote:
>
> > Jeff Harrison wrote:
> [snip]
> > > Perhaps the problem is that there are trailing spaces
> > > within the variable.
> > >
> > > Try the following instead:
> > >
> > > lookup fil=(Filename{"") r=(RecordNo) -ex
[...]
> > I believe this is the problem. The question is: why are there
> > trailing spaces in the first place? Here's some detail that
> > helps with background.
> >
> > ::declare global FileName(20,*):
[...]
> When you declared the filename as:
> declare global FileName(20,*)
> You are reserving a string variable in memory that is
> automatically filled with spaces by default.
[...]

True.  However, this would not cause a "syntax error", as the OP
has reported as being the error.

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