<?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 Value.Value in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/value-value/m-p/26642#M950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just spent way too much time figuring out that a tool parameter value such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GetParameterInfo()[Index].Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is not a string but an object with a string property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GetParameterInfo()[Index].Value.Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is contrary to the description in the document&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/pdf/Geoprocessor_93.pdf"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/pdf/Geoprocessor_93.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where the general rule is that "All properties and method parameters are either a string or a long data type, unless otherwise stated", but in the Parameter section, it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; �?��??�?� Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; �?��??�?� Value: Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in purple with a link back to the Value section (if it is, in fact, the same class; currently that section is only linked from GetParameter(Index): Value )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I should mention this issue here since I couldn't find any discussion of it, which suggests that most people are using another route to get this information such as GetParameter(Index).Value.Value, GetParameterAsText(Index), or just retyping Value with an assignment from a string. Unfortunately the default ToolValidator class sends one down the path of using GetParameterInfo(), hence my journey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this document will be corrected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 14:24:55 GMT</pubDate>
    <dc:creator>AndyAnderson</dc:creator>
    <dc:date>2010-10-22T14:24:55Z</dc:date>
    <item>
      <title>Value.Value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/value-value/m-p/26642#M950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just spent way too much time figuring out that a tool parameter value such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GetParameterInfo()[Index].Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is not a string but an object with a string property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GetParameterInfo()[Index].Value.Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is contrary to the description in the document&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/pdf/Geoprocessor_93.pdf"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/pdf/Geoprocessor_93.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where the general rule is that "All properties and method parameters are either a string or a long data type, unless otherwise stated", but in the Parameter section, it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; �?��??�?� Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; �?��??�?� Value: Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in purple with a link back to the Value section (if it is, in fact, the same class; currently that section is only linked from GetParameter(Index): Value )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I should mention this issue here since I couldn't find any discussion of it, which suggests that most people are using another route to get this information such as GetParameter(Index).Value.Value, GetParameterAsText(Index), or just retyping Value with an assignment from a string. Unfortunately the default ToolValidator class sends one down the path of using GetParameterInfo(), hence my journey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this document will be corrected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 14:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/value-value/m-p/26642#M950</guid>
      <dc:creator>AndyAnderson</dc:creator>
      <dc:date>2010-10-22T14:24:55Z</dc:date>
    </item>
  </channel>
</rss>

