<?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: Formatting labels in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/formatting-labels/m-p/157947#M1763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite difficult to determine what you are trying to do? &amp;nbsp;Maybe show the table with the required fields you wish to label and a sample formatted output you desire would help. &amp;nbsp;Your field named [Layer] is misleading is this referring to a layer on your map? or referencing something else altogether?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at first pass I am going on the assumption "&lt;SPAN style="background-color: #ffffff;"&gt; I want it displayed as currency and rounded."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FormatNumber&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Cost&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt; Will round to two decimal places&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; border: 0px; margin: 0px 0px 1em;"&gt;&lt;EM&gt;&lt;STRONG&gt;FormatNumber(number [,DecimalPlaces [,IncludeLeadingZero [,UseParenthesis [, GroupDigits]]]] )&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;FormatCurrency(Expression[,NumDigAfterDec[,IncLeadingDig[,UseParForNegNum[,GroupDig]]]])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #242729; border: 0px; margin: 0px 0px 1em;"&gt;&lt;EM&gt;number : The number to format.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DecimalPlaces : Number of digits to display after the decimal point.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IncludeLeadingZero : Include a leading zero for numbers &amp;lt;1 and &amp;gt; -1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UseParenthesis : Show negative numbers in Parentheis (500) = -500&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GroupDigits : Group large numbers with commas (or the regional delimiter)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/344474_FormatNumber.png" style="width: 620px; height: 439px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 14:49:11 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2017-03-28T14:49:11Z</dc:date>
    <item>
      <title>Formatting labels</title>
      <link>https://community.esri.com/t5/mapping-questions/formatting-labels/m-p/157946#M1762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not knowledgeable with coding, but I am trying to format labels for this one layer. I want 2 attributes labeled and have currently achieved, but for one of them I want it displayed as currency and rounded. I have found how to do each of these, however I'm a little confused how to implement both at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am keeping in mind consistency of what I use (Python vs VBScript vs JScript) and am so far using VBScript for both, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FormatPercent &amp;amp; Round ([LAYER], 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not work, and neither does removing the ampersand (and second space), nor putting the layer and 'Round' in an inner set of parentheses or anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of resources for how to apply multiple formats to the same layer? I found an example in our own data but it was for the text in particular (italics, bold, font size, color), using tags similar to (but NOT identical) HTML, however this of course is different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/formatting-labels/m-p/157946#M1762</guid>
      <dc:creator>meganbarron</dc:creator>
      <dc:date>2017-03-27T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting labels</title>
      <link>https://community.esri.com/t5/mapping-questions/formatting-labels/m-p/157947#M1763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite difficult to determine what you are trying to do? &amp;nbsp;Maybe show the table with the required fields you wish to label and a sample formatted output you desire would help. &amp;nbsp;Your field named [Layer] is misleading is this referring to a layer on your map? or referencing something else altogether?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at first pass I am going on the assumption "&lt;SPAN style="background-color: #ffffff;"&gt; I want it displayed as currency and rounded."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FormatNumber&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Cost&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt; Will round to two decimal places&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; border: 0px; margin: 0px 0px 1em;"&gt;&lt;EM&gt;&lt;STRONG&gt;FormatNumber(number [,DecimalPlaces [,IncludeLeadingZero [,UseParenthesis [, GroupDigits]]]] )&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;FormatCurrency(Expression[,NumDigAfterDec[,IncLeadingDig[,UseParForNegNum[,GroupDig]]]])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #242729; border: 0px; margin: 0px 0px 1em;"&gt;&lt;EM&gt;number : The number to format.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DecimalPlaces : Number of digits to display after the decimal point.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IncludeLeadingZero : Include a leading zero for numbers &amp;lt;1 and &amp;gt; -1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UseParenthesis : Show negative numbers in Parentheis (500) = -500&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GroupDigits : Group large numbers with commas (or the regional delimiter)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/344474_FormatNumber.png" style="width: 620px; height: 439px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/formatting-labels/m-p/157947#M1763</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-03-28T14:49:11Z</dc:date>
    </item>
  </channel>
</rss>

