Why am I getting a syntax error?
Kenneth Brody
kenbrody at bestweb.net
Wed Feb 8 13:13:42 PST 2006
Quoting Dan Coutu (Wed, 08 Feb 2006 16:03:37 -0500):
> Kenneth Brody wrote:
> > Quoting Jeff Harrison (Wed, 8 Feb 2006 11:14:44 -0800 (PST)):
> > [...]
> >
> >> Perhaps the problem is that there are trailing spaces
> >> within the variable.
> >>
> >> Try the following instead:
> >>
> >> lookup fil=(Filename{"") r=(RecordNo) -ex
> >>
> >
> > filePro automatically strips trailing spaces.
> >
> I've used the debugger to conclusively prove that this is not so with
> 5.0.14D4.
>
> Given the previous code snippets this evaluates false in the debugger:
>
> if: FileName eq "customer"
>
> while this evaluates true:
>
> if: FileName eq "customer "
Correct, but both "customer" and "customer " will lookup to the
file named "customer".
--
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