<?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: vbscript for NOT displaying zero's in attribute field for labels in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239523#M3205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From your other thread, are you looking for something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Function FindLabel ( [LOCID] , [Silica]&amp;nbsp; ) &amp;nbsp; if ( [Silica] &amp;gt; 0) then&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = [LOCID] &amp;amp; vbNewLine &amp;amp; [Silica]&amp;nbsp; &amp;nbsp; else &amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = [LOCID] &amp;nbsp; end if&amp;nbsp; End Function&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 17:49:01 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2012-10-23T17:49:01Z</dc:date>
    <item>
      <title>vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239514#M3196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to label some wells with their ID and analyte value,&amp;nbsp; but if the well has a zero I don't need it labeled. Could anyone take a look at what I've got so far? I keep getting an error, but I can't seem to figure it out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The function is calling our 'Silica', and I"m wondering if this field needs to be all uppercase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Function AnValue ( [LOCID] , [Silica] ) &amp;nbsp; if ( [Silica] &amp;gt; 0 then &amp;nbsp; AnValue = [Silica] &amp;nbsp; end if&amp;nbsp; End Function&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Randy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 14:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239514#M3196</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239515#M3197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm wondering if the SILICA field needs to be a certain type? I have it has a short integer now with 4 as precision.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239515#M3197</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239516#M3198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You code was missing a parenthesis. This code works with a numeric field with decimals&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

Function FindLabel ( [LOCID] , [Silica]&amp;nbsp; )
&amp;nbsp; if ( [Silica] &amp;gt; 0&lt;SPAN style="color:#ff0000;"&gt;)&lt;/SPAN&gt; then
&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel =[Silica]
&amp;nbsp; end if
End Function&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239516#M3198</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239517#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, I found that. still no go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 16:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239517#M3199</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T16:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239518#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is how it works for me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18659[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239518#M3200</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-23T17:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239519#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, that's what I got.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18662[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239519#M3201</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T17:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239520#M3202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why do you have two SILICA fields? Could that be an issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239520#M3202</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-23T17:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239521#M3203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ha ha! good catch ken. I THINK what happened is when I was experimenting with adding different fields, the SILICA field was entered in a couple of times. Well, when I deleted the fields, I didn't "refresh" the label expression dialog box. So, I removed the shape file and added it back in, and VOILA!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the function is not labeling the other well sites that have a zero. hmmm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239521#M3203</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T17:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239522#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;However, the function is not labeling the other well sites that have a zero. hmmm&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'm not sure what your objective is. I thought you didn't want the well sites with a zero to be labeled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239522#M3204</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-23T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239523#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From your other thread, are you looking for something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Function FindLabel ( [LOCID] , [Silica]&amp;nbsp; ) &amp;nbsp; if ( [Silica] &amp;gt; 0) then&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = [LOCID] &amp;amp; vbNewLine &amp;amp; [Silica]&amp;nbsp; &amp;nbsp; else &amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = [LOCID] &amp;nbsp; end if&amp;nbsp; End Function&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239523#M3205</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-23T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239524#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;absolutely perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bravo, and many thanks Ken!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 18:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239524#M3206</guid>
      <dc:creator>nimitz</dc:creator>
      <dc:date>2012-10-23T18:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: vbscript for NOT displaying zero's in attribute field for labels</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239525#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help. Don't forget to click on the check mark in the post that answered your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 19:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/vbscript-for-not-displaying-zero-s-in-attribute/m-p/239525#M3207</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-23T19:46:44Z</dc:date>
    </item>
  </channel>
</rss>

