Hello,
I'm tring to set a string variable to be a path and filename to a certain file.
I need it to look like:
(load "S:\Tools\Tools_Subfolder\MyStuff\\test.txt")

But when I try this command:
LoadCommand = "(load \"S:\Tools\Tools_Subfolder\MyStuff\test.txt \")"
I get:
Compile error, Expected End of Statement
The cursor highlights the S

Thanks,
Mark

You must double double quotes inside double quotes: LoadCommand = "(load \""S:\Tools\Tools_Subfolder\MyStuff\test.txt \"")"

commented: Very helpful! +1

Thank you very much. That worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.