<?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: Converting VB Script for Labelling to Arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205515#M1250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried a second attempt. I hope that this removed the issue of pointing to our SQL Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2019 19:16:02 GMT</pubDate>
    <dc:creator>WilliamDelmar</dc:creator>
    <dc:date>2019-07-10T19:16:02Z</dc:date>
    <item>
      <title>Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205505#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following VB Script expression for labeling hatches.&amp;nbsp;It&lt;SPAN&gt;&amp;nbsp;worked just fine in ArcMap.&lt;/SPAN&gt;&amp;nbsp;As I am now using ArcGIS Pro,&amp;nbsp;I would like some help converting it to Arcade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel ( esri__measure )&lt;/P&gt;&lt;P&gt;segLen = esri__measure&lt;/P&gt;&lt;P&gt;if&amp;nbsp; right(int((segLen *3.2808399)),2) = 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; lblStation= int((segLen *3.2808399)/100) &amp;amp; "+00"&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; lblStation = int((segLen *3.2808399)/100) &amp;amp; "+" &amp;amp;&amp;nbsp; right(int(segLen *3.2808399),2)&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FindLabel = lblStation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205505#M1240</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-09T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205506#M1241</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/people/WDelmar" target="_blank"&gt;WDelmar&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should be able to do something like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; segLen &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;&lt;SPAN class="token function"&gt;LengthGeodetic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'feet'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&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="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Round&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&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="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"+00"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205506#M1241</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205507#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr. Bakker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. I will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205507#M1242</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205508#M1243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I&amp;nbsp;tried the expression, I received an error of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid expression.&lt;/P&gt;&lt;P&gt;Error on line 1.&lt;/P&gt;&lt;P&gt;Projection is invalid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I altered line 1 to read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;var&lt;/SPAN&gt; segLen &lt;SPAN style="color: #808080;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #9bbb59;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9bbb59;"&gt;Length&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;'feet'&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it returned a result of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I ran the expression, my labels read all the same number. Is there a way to have the resulting number change based on the distance from the beginning of the line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 14:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205508#M1243</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205509#M1244</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/320775"&gt;William Delmar&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain what projection your data has? You mention that all your labels read the same number. What is that number? Your original VB script used esri__measure. Is that value (attribute) available in the data in the web map? I guess you have points and want to show the measurement based on that value, right? And the value is in meters and you need to translate that to feet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 14:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205509#M1244</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-07-10T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205510#M1245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-decoration: underline; "&gt;Can you explain what projection your data has?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They were drawn in the Projected Coordinate System: NAD 1983 UTM Zone 15N, Projection: Transverse Mercator, WKID: 26915; with Geographic Coordinate System: GCS North American 1983, WKID: 4269.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-decoration: underline; "&gt;What is that number?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The number&amp;nbsp;&lt;SPAN&gt;on the labels&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is 1076+61.&amp;nbsp;This appears to be the total length of the line when converted into feet and further converted into a method of stationing that is used for roadways and levees.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-decoration: underline; "&gt;Your original VB script used esri__measure. Is that value (attribute) available in the data in the web map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The esri__measure is the Shape Length of the lines drawn. The data is located in the map, though not currently a web map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-decoration: underline; "&gt;I guess you have points and want to show the measurement based on that value, right? And the value is in meters and you need to translate that to feet?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using existing data that&amp;nbsp;is centerlines for levees. We collected observations that use the measurement along this line as a reference for points and lines along the centerline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205510#M1245</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205511#M1246</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/320775"&gt;William Delmar&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to share a&amp;nbsp;sample of your data? Or create a group in ArcGIS Online and invite me to that group (using &lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;xbakker@esri.co_utility_esri_co&lt;/SPAN&gt;) and share the sample of the data in that group? It is so much easier if I&amp;nbsp;can see and interact with the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205511#M1246</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-07-10T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205512#M1247</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/people/WDelmar" target="_blank"&gt;WDelmar&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before&amp;nbsp;you share your data, could you try this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; segLen &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;&lt;SPAN class="string token"&gt;"Shape__Length"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3.2808399&lt;/SPAN&gt;&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="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Round&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&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="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"+00"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205512#M1247</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205513#M1248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a link to the group that was created. &lt;A href="https://arcg.is/GPKiX"&gt;https://arcg.is/GPKiX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 17:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205513#M1248</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205514#M1249</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/people/WDelmar"&gt;WDelmar&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you shared layer package, but I think I can open it in ArcGIS Pro and publish it in my portal for the moment to understand the data you have. It seems the data source is still pointing to your SQL Server database and I don't have access to that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data stored in the Enterprise Geodatabase and you are creating a web map consuming the service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 18:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205514#M1249</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-07-10T18:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205515#M1250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried a second attempt. I hope that this removed the issue of pointing to our SQL Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205515#M1250</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T19:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205516#M1251</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/320775" target="_blank"&gt;William Delmar&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to connect to the data and I see what you mean. The field reference I proposed has a fixed reference to the length of the line. There is a special reference that points to the measurement: &lt;STRONG&gt;$measure&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code would look like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; segLen &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;$measure &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3.2808399&lt;/SPAN&gt;&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="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Round&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&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="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;segLen &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"+00"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting in:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452799_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205516#M1251</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T10:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205517#M1252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a small suggestion and change the interval to:&amp;nbsp;7.6199999884176 (25 feet in meters):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452800_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205517#M1252</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-07-10T19:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205518#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205518#M1253</guid>
      <dc:creator>WilliamDelmar</dc:creator>
      <dc:date>2019-07-10T19:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VB Script for Labelling to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205519#M1254</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/320775"&gt;William Delmar&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are welcome. If it turns out that it works for you, could you mark the&amp;nbsp;post that answered your question as the correct one? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vb-script-for-labelling-to-arcade/m-p/205519#M1254</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-07-10T20:19:18Z</dc:date>
    </item>
  </channel>
</rss>

