<?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 how to define the buffer distance in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101667#M2570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i applied the buffer sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i want to define the buffer distance before click in the map. i created a textbox where i can enter the distance but in the code behind..it give me an error : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; var distancebuffer = txtbuffer.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParams.Distances.Add(distancebuffer);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;the error : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Error : Argument 1: cannot convert from 'string' to 'double'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Error : The best overloaded method match for 'System.Collections.Generic.List&amp;lt;double&amp;gt;.Add(double)' has some invalid arguments&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:17:18 GMT</pubDate>
    <dc:creator>YassineEL_JADIDI</dc:creator>
    <dc:date>2021-12-11T06:17:18Z</dc:date>
    <item>
      <title>how to define the buffer distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101667#M2570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i applied the buffer sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i want to define the buffer distance before click in the map. i created a textbox where i can enter the distance but in the code behind..it give me an error : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; var distancebuffer = txtbuffer.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParams.Distances.Add(distancebuffer);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;the error : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Error : Argument 1: cannot convert from 'string' to 'double'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Error : The best overloaded method match for 'System.Collections.Generic.List&amp;lt;double&amp;gt;.Add(double)' has some invalid arguments&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101667#M2570</guid>
      <dc:creator>YassineEL_JADIDI</dc:creator>
      <dc:date>2021-12-11T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to define the buffer distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101668#M2571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;txtBuffer.Text is a string you need to pass a double to the method, that is why the error says you are passing a string where a double is required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp; double distancebuffer = double.Parse(txtbuffer.Text);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; bufferParams.Distances.Add(distancebuffer);

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(perhaps at some point you could thank someone on this forum who offers you help)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101668#M2571</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2021-12-11T06:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to define the buffer distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101669#M2572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you too much minerjoe for your reply...it's ok now !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and im sorry if i didn't thank you in others topics...my apologizes !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 09:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-define-the-buffer-distance/m-p/101669#M2572</guid>
      <dc:creator>YassineEL_JADIDI</dc:creator>
      <dc:date>2012-06-28T09:40:02Z</dc:date>
    </item>
  </channel>
</rss>

