plugins.file.getFolderContents and comparing a text variable

If you try and get the contents of a directory using the plugins.file.getFolderContents plugin it will say vFolderContent[0] = z:\mobile\traffic\2008

To compare I set up a variable as follows:

var vPath = “z:\mobile\traffic\2008”;
I get the following error:

Validation error in method

message: parsing error, line not terminated correctly

I want to compare the two variables and can’t.

If I make it like this var vPath = “z:/mobile/traffic/2008” then yes it’s ok but the 2 strings will be different. It will look like this: “z:/mobile/traffic/2008”

Am I missing something? Which is highly possible.

Thanks

Servoy Developer
Version 3.5.4-build 517
Java version 1.6.0_03-b05 (Japanese Windows XP)

Steve

JapanDev:
ITo compare I set up a variable as follows:

var vPath = “z:\mobile\traffic\2008”;

This doesn’t work, because “” is the escape character.

\t for example means a horizontal tab and \200 is an ASCII character.
You should use double backslash instead:

var vPath = "z:\\mobile\\traffic\\2008";

Thank you. I’ll try that.

Steve