Syntax error

Kenneth Brody kenbrody at bestweb.net
Wed Mar 19 09:17:50 PDT 2008


Quoting Don Coleman (Wed, 19 Mar 2008 11:47:53 -0400):

> I am creating an open selection set via export on the fly from within a -v
> select process table.  Instead of being able to hardcode the entire path I
> now need to incorporate a variable (which contains the user's initials).
> However, when I do so I get a syntax error.  Anyone see my problem?
>
> Previous
> RF="E:\QS1\TODO\FILEPRO\QS1\DOUBLE.SEL"{""
> Works ok and passes syntax check
>
>
> Modified
> RF="E:\QS1\TODO\FILEPRO\QS1\"{DE{".SEL"{""
>
> The syntax error points to the "." (period) just before the SEL.
> The variable (DE) is defined earlier in the table.

The problem is the backslash-quote combination, which tells filePro that
the quote is not a closing quote.

Possible solution:

     RF = "E:\QS1\TODO\FILEPRO\QS1\ " { DE { ".SEL"

Improved solution:

     RF = "E:/QS1/TODO/FILEPRO/QS1/" { DE { ".SEL"

Improved improved solution:

     RF = getenv("PFDATA") { getenv("PFDIR") { "/filepro/qs1/" { DE { ".sel"

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