<?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 Arcade labeling to return the characters before a dash. in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1290850#M6604</link>
    <description>&lt;P&gt;I'm trying to create an arcade expression to return all the characters before a dash. The field contains these values:&lt;/P&gt;&lt;P&gt;PE - Polyethylene&lt;/P&gt;&lt;P&gt;STL - Steel&lt;/P&gt;&lt;P&gt;AA - DuPont Aladyl-A&lt;/P&gt;&lt;P&gt;TR-418&lt;/P&gt;&lt;P&gt;I thought that this arcade code would help to label the line feature:&lt;/P&gt;&lt;P&gt;Trim(Left(DomainName($feature, 'MATERIAL'),3))&lt;/P&gt;&lt;P&gt;It help solve the issue with the steel, but this was no help since the TR-418 does not have a space between the R and dash, and it return "TR-".&lt;/P&gt;&lt;P&gt;Any ideas now how I can create this arcade code to label the line without the dash.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 21:33:43 GMT</pubDate>
    <dc:creator>IsaiasSegovia1</dc:creator>
    <dc:date>2023-05-18T21:33:43Z</dc:date>
    <item>
      <title>Arcade labeling to return the characters before a dash.</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1290850#M6604</link>
      <description>&lt;P&gt;I'm trying to create an arcade expression to return all the characters before a dash. The field contains these values:&lt;/P&gt;&lt;P&gt;PE - Polyethylene&lt;/P&gt;&lt;P&gt;STL - Steel&lt;/P&gt;&lt;P&gt;AA - DuPont Aladyl-A&lt;/P&gt;&lt;P&gt;TR-418&lt;/P&gt;&lt;P&gt;I thought that this arcade code would help to label the line feature:&lt;/P&gt;&lt;P&gt;Trim(Left(DomainName($feature, 'MATERIAL'),3))&lt;/P&gt;&lt;P&gt;It help solve the issue with the steel, but this was no help since the TR-418 does not have a space between the R and dash, and it return "TR-".&lt;/P&gt;&lt;P&gt;Any ideas now how I can create this arcade code to label the line without the dash.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 21:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1290850#M6604</guid>
      <dc:creator>IsaiasSegovia1</dc:creator>
      <dc:date>2023-05-18T21:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade labeling to return the characters before a dash.</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1290880#M6605</link>
      <description>&lt;P&gt;You can use &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#split" target="_self"&gt;Split&lt;/A&gt; to divide it at the dash and take the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#first" target="_self"&gt;First&lt;/A&gt; value from that array&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Trim(First(Split(DomainName($feature, 'MATERIAL'),'-')));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 23:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1290880#M6605</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-18T23:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade labeling to return the characters before a dash.</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1291052#M6611</link>
      <description>&lt;P&gt;It worked, thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-labeling-to-return-the-characters-before-a/m-p/1291052#M6611</guid>
      <dc:creator>IsaiasSegovia1</dc:creator>
      <dc:date>2023-05-19T14:13:22Z</dc:date>
    </item>
  </channel>
</rss>

