<?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: How to assign a variable to a string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494102#M73372</link>
    <description>&lt;P&gt;Thank you so much! It works for me !&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 06:21:09 GMT</pubDate>
    <dc:creator>PartialErrors82</dc:creator>
    <dc:date>2022-05-27T06:21:09Z</dc:date>
    <item>
      <title>How to assign a variable to a string</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494019#M73369</link>
      <description>&lt;P&gt;Here is the example using arguments that assign a column property to a map role.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col&amp;lt;&amp;lt;Set Property( "Map Role", Map Role( Shape Name Use( "filepath to data table", "column name" ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the file path automatically and fill in to the "filepath to data table" in the arguments above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is how I get the path of the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Logo_Name = Pick FIle();
Logo_Name_File = Open(Logo_Name);
LogoPath = Logo_Name_File &amp;lt;&amp;lt; Get Path();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And below doesn't work for me.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Measure points&amp;lt;&amp;lt;Set Property( "Map Role", Map Role( Shape Name Use( LogoPath , "Name" ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fill in the "file path to data table " with the LogoPath variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494019#M73369</guid>
      <dc:creator>PartialErrors82</dc:creator>
      <dc:date>2023-06-09T17:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a variable to a string</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494040#M73370</link>
      <description>&lt;P&gt;&amp;nbsp;See if this works for you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Logo_Name = Pick File();
Logo_Name_File = Open( Logo_Name );
LogoPath = Logo_Name_File &amp;lt;&amp;lt; Get Path();
Eval(
	Substitute(
			Expr(
				:Measure points &amp;lt;&amp;lt; Set Property( "Map Role", Map Role( Shape Name Use( __logop__, "Name" ) ) )
			),
		Expr( __logop__ ), logoPath
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2022 03:59:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494040#M73370</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-05-27T03:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a variable to a string</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494102#M73372</link>
      <description>&lt;P&gt;Thank you so much! It works for me !&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 06:21:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-assign-a-variable-to-a-string/m-p/494102#M73372</guid>
      <dc:creator>PartialErrors82</dc:creator>
      <dc:date>2022-05-27T06:21:09Z</dc:date>
    </item>
  </channel>
</rss>

