Syntax Error
Kenneth Brody
kenbrody at spamcop.net
Mon Jul 14 10:07:00 PDT 2014
On 7/14/2014 12:13 PM, SmittyUSN1 wrote:
> OK, I give up .... it's got to be Moanday, one of you genius's must know
> how to fix this.
>
> I need to assign this value "C:\users\xxxxxxx\temp\" to a real field. I
> tried to assign same in input.prc This generates a syntax error pointing
> to the last backslash after \temp\, removing the last backslash the syntax
> error goes away.
>
> What am I doing wrong?
>
> FP 5.0.14 Windows 7
If you need to put a quote within a string, you use backslash-quote. For
example:
xx = "I said \"Hello\"."
If you really need to end a string with a backslash, there are numerous ways
to do so. A very common one is to have a space after the backslash and then
remove it with the "{" operator:
xx = "c:\users\xxxxx\temp\ " { ""
FYI - Depending on how you are going to use the filename (eg: if the
filename is going to be used within filePro, and not passed to a SYSTEM
command), you might be able to use forward slashes.
--
Kenneth Brody
More information about the Filepro-list
mailing list