Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    2

    quotation mark "

    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.."\\acaddo c.lsp", alg_an_Pfad.."\r\n", true);

    im confuse when i try to mix the quotation marks

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

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

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

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thank You!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts