<?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 read Multivalues from parameter into string Using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300458#M23252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Dates = arcpy.GetParameterAsText(0).split(";")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 21:12:13 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2011-08-05T21:12:13Z</dc:date>
    <item>
      <title>How to read Multivalues from parameter into string Using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300457#M23251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have set up a parameter with date type as "Date". I have also set the parameter to include multivalues so the user can enter various dates into a multivalue list. I want to pass the values into a list of strings or a table or something so that I can iterate through each one and read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I have this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcpy

Date1 = arcpy.GetParameterAsText(0)

arcpy.AddMessage(Date1)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add some dates to the value list, the AddMessage returns this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;08-26-2009;08-27-2009;08-29-2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to split the values from the semicolons and store them so that I can use the values to enter into a text string later on in my script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 18:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300457#M23251</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2011-08-05T18:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Multivalues from parameter into string Using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300458#M23252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Dates = arcpy.GetParameterAsText(0).split(";")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 21:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300458#M23252</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-08-05T21:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Multivalues from parameter into string Using Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300459#M23253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason, again you've offered a good solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 00:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-read-multivalues-from-parameter-into-string/m-p/300459#M23253</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2011-08-08T00:40:20Z</dc:date>
    </item>
  </channel>
</rss>

