<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Formatting A Parameter Script to include a Single Quote 1&amp;qu in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15297#M30519</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I am writing a GDL object that will have a parameter script for common text string choices from a pull down.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;!!MAIN TEXT&lt;BR /&gt;
values "MainText" "2x6", "2x8", "2x10", "2x12", "14 TJI 560", custom&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
The question is how to actually include a single quote in the text string without confusing the syntax of the code?&lt;BR /&gt;
&lt;BR /&gt;
It would be preferable for the output to be 2"x6" rather than 2x6.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
JFA&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 17 Aug 2007 12:18:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-08-17T12:18:06Z</dc:date>
    <item>
      <title>Formatting A Parameter Script to include a Single Quote 1&amp;qu</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15297#M30519</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I am writing a GDL object that will have a parameter script for common text string choices from a pull down.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;!!MAIN TEXT&lt;BR /&gt;
values "MainText" "2x6", "2x8", "2x10", "2x12", "14 TJI 560", custom&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
The question is how to actually include a single quote in the text string without confusing the syntax of the code?&lt;BR /&gt;
&lt;BR /&gt;
It would be preferable for the output to be 2"x6" rather than 2x6.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
JFA&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Aug 2007 12:18:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15297#M30519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-17T12:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting A Parameter Script to include a Single Quote</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15298#M30520</link>
      <description>&lt;BLOCKQUOTE&gt;jfa_ra wrote:&lt;BR /&gt;i.e.&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;!!MAIN TEXT&lt;BR /&gt;
values "MainText" "2x6", "2x8", "2x10", "2x12", "14 TJI 560", custom&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
The question is how to actually include a single quote in the text string without confusing the syntax of the code?&lt;/BLOCKQUOTE&gt;

Use a different kind of quotation mark; the single (apostrophe) and the little retrograde accent mark (`) will both work.&lt;BR /&gt;

&lt;PRE&gt;VALUES 'MainText' '2"x6"', '2"x8"', ...&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;It would be preferable for the output to be 2"x6" rather than 2x6.&lt;/BLOCKQUOTE&gt;

A bit OT, I would find &lt;B&gt;2"x8"&lt;/B&gt; to be potentially confusing since it should be a nominal dimension. We wouldn't use the inch sign unless it was a true dim. But you should stick with what you and your contractors are accustomed to.</description>
      <pubDate>Fri, 17 Aug 2007 13:03:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15298#M30520</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2007-08-17T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting A Parameter Script to include a Single Quote</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15299#M30521</link>
      <description>Cool!  Thank you.  That was easy.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
jfa</description>
      <pubDate>Fri, 17 Aug 2007 13:33:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Formatting-A-Parameter-Script-to-include-a-Single-Quote-1-qu/m-p/15299#M30521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-17T13:33:54Z</dc:date>
    </item>
  </channel>
</rss>

