<?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 round labels in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619248#M34966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am an old time VB'r&amp;nbsp; &amp;nbsp;Round function was not initially part of vbscript&amp;nbsp; got added later on!&amp;nbsp; I am a dinosaur too and have used the CINT function for quick rounding for many years &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &amp;nbsp;In any event... I am pretty much switched over script wise to python now; application wise I am still using vb.net or until they take that away too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 15:47:01 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2017-10-11T15:47:01Z</dc:date>
    <item>
      <title>how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619242#M34960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three fields that I am trying to label and one that I am trying to round to the nearest whole number.&amp;nbsp; Here is what I have so far:&lt;/P&gt;&lt;P&gt;"Pipe ID: " + [ID_PIPE] &amp;amp; vbNewLine &amp;amp; [DIAM_INCH] + " in." &amp;amp; vbNewLine &amp;amp; Round ( [LENGTH_FT] ) + " ft."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting an error that says:&lt;/P&gt;&lt;P&gt;Error 1 on line 2.&lt;/P&gt;&lt;P&gt;Type mismatch: 'esri_2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure it is related to the Round ( [LENGTH_FT] ) but I don't know what I'm doing wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619242#M34960</guid>
      <dc:creator>STEVEHIRSCH</dc:creator>
      <dc:date>2017-10-09T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619243#M34961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a type mismatch suggests that your Length_feet is a string and not an integer.&amp;nbsp; Check to see if it is and cast it to a float before rounding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619243#M34961</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-09T19:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619244#M34962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't be using the "+" in VBA to combine text, only use "&amp;amp;" for this. Also I am not sure if you have to specify the number of decimals when rounding a value. Try this:&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;"Pipe ID: " &amp;amp; [ID_PIPE] &amp;amp; vbNewLine &amp;amp; [DIAM_INCH] &amp;amp; " in." &amp;amp; vbNewLine &amp;amp; Round([LENGTH_FT], 0) &amp;amp; " ft."‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619244#M34962</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-09T20:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619245#M34963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="background-color: #f5f2f0; color: #000000;"&gt;"Pipe ID: " &amp;amp; [ID_PIPE] &amp;amp; vbNewLine &amp;amp; [DIAM_INCH] &amp;amp; " in." &amp;amp; vbNewLine &amp;amp; CInt(&lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f2f0; color: #000000;"&gt;[LENGTH_FT]) &amp;amp; " ft."&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I believe if using the field calculator it only accepts Vbscript which is not as rich in functions as VBA or VB ...&amp;nbsp; The CInt will perform the .5 or higher rounding automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619245#M34963</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-10T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619246#M34964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/5768"&gt;Ted Kowal&lt;/A&gt;&amp;nbsp; it is VBScript and not VBA. However,&amp;nbsp;&lt;A class="link-titled" href="https://msdn.microsoft.com/en-us/library/se6f2zfx(v=vs.84).aspx" title="https://msdn.microsoft.com/en-us/library/se6f2zfx(v=vs.84).aspx"&gt;Round Function&lt;/A&gt;&amp;nbsp; is supported and should be used if you want for instance a single decimal.&amp;nbsp; In ArcMap you can use Python, VBScript and JScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS Pro you would probably want to use &lt;A class="link-titled" href="https://developers.arcgis.com/arcade/" title="https://developers.arcgis.com/arcade/"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;, since that seems to be the future:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"Pipe ID: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ID_PIPE &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DIAM_INCH &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" in."&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Round&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LENGTH_FT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" ft."&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619246#M34964</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-10T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619247#M34965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grief... I hope not &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619247#M34965</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-10T18:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619248#M34966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am an old time VB'r&amp;nbsp; &amp;nbsp;Round function was not initially part of vbscript&amp;nbsp; got added later on!&amp;nbsp; I am a dinosaur too and have used the CINT function for quick rounding for many years &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &amp;nbsp;In any event... I am pretty much switched over script wise to python now; application wise I am still using vb.net or until they take that away too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619248#M34966</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-11T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619249#M34967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;, actually it is the way is going and although in some cases it might require some adaption, there are some nice things it offers.&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&amp;nbsp; See below a document I published this week with some examples:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-10692"&gt;Create pop-ups in ArcGIS Online with conditional images using Arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in version 10.6, ArcGIS Pro 2.1, there will be something new called Attribute Rules which is based on Arcade too (initially designed as functionality for the ArcGIS Utility Network Management Extension, but it will be a feature available throughout the platform).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619249#M34967</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-11T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619250#M34968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/5768"&gt;Ted Kowal&lt;/A&gt;&amp;nbsp;, I think it is a good thing that you switched to Python for scripting.I did that a number of years ago and I'm glad I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using VB.Net and ArcObjects is something which is not too future proof. It might be time to&amp;nbsp;switch over to Pro and explore the possibilities. There is a webinar tomorrow that might be interesting (Building ArcGIS Pro Add-Ins and Solution Configurations):&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/training/catalog/59b1d6e447f0252a6fc5a48c/building-arcgis-pro-add-ins-and-solution-configurations/" title="https://www.esri.com/training/catalog/59b1d6e447f0252a6fc5a48c/building-arcgis-pro-add-ins-and-solution-configurations/"&gt;https://www.esri.com/training/catalog/59b1d6e447f0252a6fc5a48c/building-arcgis-pro-add-ins-and-solution-configurations/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619250#M34968</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-11T16:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619251#M34969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Xander... the declarative 'vars' and extra curly braces are reminiscent of those languages I have abandoned or chosen to avoid &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;, but should I need to label anything, I will have your link on hand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 23:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619251#M34969</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-11T23:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to round labels</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619252#M34970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have yet to make Pro work for me... I spend more time trying to figure out why it crashes on me!&amp;nbsp; So atm I have put it aside till there is more stability.&amp;nbsp; I will keep your thoughts in mind and look at the webinar.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-round-labels/m-p/619252#M34970</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-12T14:52:47Z</dc:date>
    </item>
  </channel>
</rss>

