PDA

View Full Version : quotation mark "


Herlan
07-20-2009, 11:30 AM
hi all,
I need your help!

how to write these keywords in a TextFile
(SETQ ALG_AN60 "C:/Programme/CAD-COMP/AutoNORM 2009/")


However, I cannot add this " in front and behind?

CfgVerzeichnisOutput = String.Replace(CfgVerzeichnis, "\\", "/", true);
alg_anloc = "(SETQ ALG_AN60LOC "
alg_anloc_Pfad = String.Concat(alg_anloc, CfgVerzeichnisOutput.."/)");
TextFile.WriteFromString(CfgVerzeichnis.."\\acaddoc.lsp", alg_an_Pfad.."\r\n", true);

im confuse when i try to mix the quotation marks

Ulrich
07-20-2009, 02:55 PM
Hello,

if you need to have quotes inside a string, you must escape them properly with \".


alg_anloc = "(SETQ ALG_AN60LOC \""
alg_anloc_Pfad = String.Concat(alg_anloc, CfgVerzeichnisOutput.."/\")");
TextFile.WriteFromString(CfgVerzeichnis.."\\acaddo c.lsp", alg_an_Pfad.."\r\n", true);


Ulrich

Herlan
07-22-2009, 04:24 AM
Thank You!