<?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: VB Error 6 on line 0 expected statement in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/vb-error-6-on-line-0-expected-statement/m-p/267958#M15468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind I figured it out, endif needs to be end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2017 19:21:32 GMT</pubDate>
    <dc:creator>GrantHaynes</dc:creator>
    <dc:date>2017-06-07T19:21:32Z</dc:date>
    <item>
      <title>VB Error 6 on line 0 expected statement</title>
      <link>https://community.esri.com/t5/data-management-questions/vb-error-6-on-line-0-expected-statement/m-p/267957#M15467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I've been tasked with labeling some soil borings with the corresponding analytical data. I wrote out a VB script&amp;nbsp;with multiple if then statements to concatenate strings with the analytical values and replace any 0s in the data with a "ND" or non detect. Whenever I try to run the script I get "error 6 on line 0 expected statement" or "error 5 on line 0 expected statement" &amp;nbsp;I've checked all the if/then statements, and I've even tried pairing it down to just one statement to try to troubleshoot the rest, I can't seem to find anything wrong, I'm hoping someone here can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel( [Shallow_GRO], [Shallow_DRO], [Shallow_ORO], [Shallow_PNA], [Deep_GRO], [Deep_DRO], [Deep_ORO], [Deep_PNAs])&lt;BR /&gt;if ([Shallow_GRO]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "GRO" &amp;amp; [Shallow_GRO] &lt;BR /&gt;elseif ([Shallow_GRO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Shallow_DRO] &amp;gt; 0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "DRO" &amp;amp; [Shallow_DRO] &lt;BR /&gt;elseif ([Shallow_DRO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Shallow_ORO]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "ORO" &amp;amp; [Shallow_ORO] &lt;BR /&gt;elseif ([Shallow_ORO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Shallow_PNA]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "PNA" &amp;amp; [Shallow_PNA] &lt;BR /&gt;elseif ([Shallow_PNA]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Deep_GRO]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "GRO" &amp;amp; [Deep_GRO] &lt;BR /&gt;elseif ([Deep_GRO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Deep_DRO]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "DRO" &amp;amp; [Deep_DRO]&lt;BR /&gt;elseif ([Deep_DRO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Deep_ORO]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "ORO" &amp;amp; [Deep_ORO]&lt;BR /&gt;elseif ([Deep_ORO]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;if ([Deep_PNAs]&amp;gt;0)then&lt;BR /&gt;FindLabel = FindLabel&amp;amp;vbnewline&amp;amp; "PNA" &amp;amp; [Deep_PNAs]&lt;BR /&gt;elseif ([Deep_PNAs]=0) then&lt;BR /&gt;FindLabel = FindLabel &amp;amp;vbnewline&amp;amp; "ND"&lt;BR /&gt;endif&lt;BR /&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vb-error-6-on-line-0-expected-statement/m-p/267957#M15467</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2017-06-07T15:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: VB Error 6 on line 0 expected statement</title>
      <link>https://community.esri.com/t5/data-management-questions/vb-error-6-on-line-0-expected-statement/m-p/267958#M15468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind I figured it out, endif needs to be end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vb-error-6-on-line-0-expected-statement/m-p/267958#M15468</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2017-06-07T19:21:32Z</dc:date>
    </item>
  </channel>
</rss>

