Why am I getting a syntax error?
Nancy Palmquist
nlp at vss3.com
Thu Feb 9 06:57:18 PST 2006
Kenneth Brody wrote:
> Quoting Nancy Palmquist (Wed, 08 Feb 2006 17:56:50 -0500):
> [...]
>
>>(it may be true as Ken suggests that a filePro lookup will work without
>>the {"" but an EXPORT or IMPORT does not. I just get in the habit to do
>>it and save myself issues.)
>
>
> Since when? A quick check of a 4.0 source backup shows that trailing
> spaces are stripped from variable IMPORT/EXPORT filenames.
>
Ken,
As with many of the programming techniques I have collected, I spent
many hours struggling with a programming issue at one time. I found the
problem and made a habit of saving myself a lot of time by just
automatically working the solution.
It does not always make sense but it has saved me a lot of time. The
downside to this is that when the solution is no longer necessary, I do
not notice so I keep up the same style of programming.
It is foolish sometimes but it gets the job done.
Since I did not have time to verify my suggestions, I will leave that to
others to try both and see what works.
My recent programming work has done a lot with manipulating files on
Windows and Unix and my gut feeling is that it is still prudent to
smuuch off the trailing spaces.
That includes any mention of a filename such as in an EXISTS().
If I have time later I will design a test of this and let everyone know
how it works out.
Nancy
--
Nancy Palmquist MOS & filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list