<?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 Re: String formatting to customize chart Titles and Annotations in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355507#M60551</link>
    <description>It is documented in the Scripting Guide found in the JMP Documentation Library found under the Help pull down menu.&lt;BR /&gt;&lt;BR /&gt;I did a "Whole Word" search on "new line" and found a reference to it&lt;BR /&gt;&lt;BR /&gt;Write() sends the message that you specify to the log. Write() is the same as Print() except&lt;BR /&gt;that it suppresses the quotation marks around the text string, and it does not start on a new&lt;BR /&gt;line unless you include a return character yourself with the \!N escape sequence.&lt;BR /&gt;myText = "Here is a message.";&lt;BR /&gt;Write( "Here is a message." );&lt;BR /&gt;Here is a message.&lt;BR /&gt;Write( myText || " Do not forget to buy milk." ); // use || to concatenate&lt;BR /&gt;Write( "\!NAnd bread." ); // use \!N for return&lt;BR /&gt;Here is a message. Do not forget to buy milk.&lt;BR /&gt;And bread.&lt;BR /&gt;The sequence \!N inserts the line breaking characters that are appropriate for the host&lt;BR /&gt;environment. For an explanation of the three line breaking escape</description>
    <pubDate>Wed, 03 Feb 2021 17:31:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-02-03T17:31:03Z</dc:date>
    <item>
      <title>String formatting to customize chart Titles and Annotations</title>
      <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355422#M60541</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that we reached a nice Application, we would like to customize charts Titles and add som Text Annotations, like Project &amp;amp; Scenario name, Description...&lt;/P&gt;&lt;P&gt;To make it nicer, I tried to insert a Line Feed control code into the string but it is displayed instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	SendToReport(
		Dispatch(
			{},
			"Distributions",
			OutlineBox,
			{Set Title( Eval( Char ( scenario ) ) || "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;\n&lt;/STRONG&gt;&lt;/FONT&gt;IST Distribution" )}
		),
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StringFormat.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29961i6951819F910897CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="StringFormat.png" alt="StringFormat.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In idea if this is even feasible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355422#M60541</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2023-06-09T22:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: String formatting to customize chart Titles and Annotations</title>
      <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355446#M60543</link>
      <description>&lt;P&gt;The escape sequence for new line is "\!n"&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 16:48:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355446#M60543</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-03T16:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: String formatting to customize chart Titles and Annotations</title>
      <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355494#M60549</link>
      <description>Thanks a lot Jim, it worked fine!&lt;BR /&gt;&lt;BR /&gt;Do you know where and how I could have found this information? (scripting index or online help, but what to search for?)</description>
      <pubDate>Wed, 03 Feb 2021 17:24:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355494#M60549</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2021-02-03T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: String formatting to customize chart Titles and Annotations</title>
      <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355507#M60551</link>
      <description>It is documented in the Scripting Guide found in the JMP Documentation Library found under the Help pull down menu.&lt;BR /&gt;&lt;BR /&gt;I did a "Whole Word" search on "new line" and found a reference to it&lt;BR /&gt;&lt;BR /&gt;Write() sends the message that you specify to the log. Write() is the same as Print() except&lt;BR /&gt;that it suppresses the quotation marks around the text string, and it does not start on a new&lt;BR /&gt;line unless you include a return character yourself with the \!N escape sequence.&lt;BR /&gt;myText = "Here is a message.";&lt;BR /&gt;Write( "Here is a message." );&lt;BR /&gt;Here is a message.&lt;BR /&gt;Write( myText || " Do not forget to buy milk." ); // use || to concatenate&lt;BR /&gt;Write( "\!NAnd bread." ); // use \!N for return&lt;BR /&gt;Here is a message. Do not forget to buy milk.&lt;BR /&gt;And bread.&lt;BR /&gt;The sequence \!N inserts the line breaking characters that are appropriate for the host&lt;BR /&gt;environment. For an explanation of the three line breaking escape</description>
      <pubDate>Wed, 03 Feb 2021 17:31:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355507#M60551</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-03T17:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: String formatting to customize chart Titles and Annotations</title>
      <link>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355533#M60555</link>
      <description>Wonderful!&lt;BR /&gt;&lt;BR /&gt;You just made me discover this huge PDF documentation.&lt;BR /&gt;I only used the Scripting Index, in which this same search gives nothing ;)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Wed, 03 Feb 2021 18:07:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-formatting-to-customize-chart-Titles-and-Annotations/m-p/355533#M60555</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2021-02-03T18:07:06Z</dc:date>
    </item>
  </channel>
</rss>

