Why am I getting a syntax error?

Jeff Harrison jeffaharrison at yahoo.com
Wed Feb 8 12:45:01 PST 2006


--- Kenneth Brody <kenbrody at bestweb.net> wrote:

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

Yes, but to be fair, from time to time filepro also
reports the wrong error message.  :-)

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The easiest and
fastest ways to generate code for filePro exports and
imports.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Filepro-list mailing list