<?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 scripting - How to tell if feature is being created or being edited? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113986#M805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using VBscript. Is there a way to tell in my form load code if the edit form is being opened because the user is editing an existing feature vs creating a new feature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2013 02:21:17 GMT</pubDate>
    <dc:creator>TereseRowekamp</dc:creator>
    <dc:date>2013-05-10T02:21:17Z</dc:date>
    <item>
      <title>scripting - How to tell if feature is being created or being edited?</title>
      <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113986#M805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using VBscript. Is there a way to tell in my form load code if the edit form is being opened because the user is editing an existing feature vs creating a new feature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 02:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113986#M805</guid>
      <dc:creator>TereseRowekamp</dc:creator>
      <dc:date>2013-05-10T02:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: scripting - How to tell if feature is being created or being edited?</title>
      <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113987#M806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcpad/10.0/sdk/scripting/ArcPadScriptingObjectModel~Form~Mode.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/arcpad/10.0/sdk/scripting/ArcPadScriptingObjectModel~Form~Mode.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim thisform = Application.Map.Layers(lyrname).Forms('EDITFORM')

If lyrform.Mode = 2 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.MessageBox('Form open for editing')
Else If lyrform.Mode = 3 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.MessageBox('Form open for new feature')
End If
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My vb is rusty, but you should get the picture.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113987#M806</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2021-12-11T06:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: scripting - How to tell if feature is being created or being edited?</title>
      <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113988#M807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks James. I eventually figured it out and got my code working as needed, but it's good to get the answer out here, too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113988#M807</guid>
      <dc:creator>TereseRowekamp</dc:creator>
      <dc:date>2013-06-13T13:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: scripting - How to tell if feature is being created or being edited?</title>
      <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113989#M808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, why don't you tick the answer (or add your own answer with more details and tick that) to help others find and solve similar problems.:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 12:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113989#M808</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2013-06-21T12:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: scripting - How to tell if feature is being created or being edited?</title>
      <link>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113990#M809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You know James, I've looked before trying to find where I check a reply as the answer and I never noticed the grayed out checkmark until right now when I looked again. Sorry I didn't mark your answer before!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 20:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/scripting-how-to-tell-if-feature-is-being-created/m-p/113990#M809</guid>
      <dc:creator>TereseRowekamp</dc:creator>
      <dc:date>2013-06-25T20:56:58Z</dc:date>
    </item>
  </channel>
</rss>

