<?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 Why doesn't this work? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210025#M1536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you might need to change your command name to "delete" instead of "featuredelete".&amp;nbsp; It's strange that it asks you to confirm the delete command though since "featuredelete" doesn't appear in the list of valid commands in the ArcPad developers help.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 13:57:29 GMT</pubDate>
    <dc:creator>MattCooper</dc:creator>
    <dc:date>2010-04-16T13:57:29Z</dc:date>
    <item>
      <title>Why doesn't this work?</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210021#M1532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a button on an editform to delete the selected feature.&amp;nbsp; Here's the code that is called when the button is clicked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub DeleteSighting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim objSightingsLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim objSelectedLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objSelectedLayer = Map.SelectionLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if objSelectedLayer is Nothing then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; msgBox("No feature is selected!")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; exit Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objSightingsLayer = map.layers("Sightings")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; objSightingsLayer.Forms("EditForm").Close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Application.ExecuteCommand("featuredelete")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click the button, the form closes, and the ArcPad dialog box asks me if I want to delete the selected feature.&amp;nbsp; However, when I say "yes," the feature is not deleted, and it becomes unselected.&amp;nbsp; If I select the feature and then use the "Delete Feature" command from the drawing tools menu, the feature is deleted as expected.&amp;nbsp; Any idea why the "delete feature" command doesn't work from my edit form?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 17:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210021#M1532</guid>
      <dc:creator>DouglasBurn</dc:creator>
      <dc:date>2010-04-14T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Why doesn't this work?</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210022#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm no coder but,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should deleting come before closing in your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 07:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210022#M1533</guid>
      <dc:creator>BillCrawford</dc:creator>
      <dc:date>2010-04-15T07:41:16Z</dc:date>
    </item>
    <item>
      <title>My thinking was</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210023#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that the form should be closed first, before deleting the feature. But it was easy to move the ExecuteCommand statement in front of the form close statement.&amp;nbsp; Unfortunately, that doesn't work, either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 16:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210023#M1534</guid>
      <dc:creator>DouglasBurn</dc:creator>
      <dc:date>2010-04-15T16:11:16Z</dc:date>
    </item>
    <item>
      <title>Why doesn't this work?</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210024#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any way to view the code for ESRI's "Delete Feature" button in Arcpad for any tips?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 23:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210024#M1535</guid>
      <dc:creator>BillCrawford</dc:creator>
      <dc:date>2010-04-15T23:32:32Z</dc:date>
    </item>
    <item>
      <title>Why doesn't this work?</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210025#M1536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you might need to change your command name to "delete" instead of "featuredelete".&amp;nbsp; It's strange that it asks you to confirm the delete command though since "featuredelete" doesn't appear in the list of valid commands in the ArcPad developers help.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 13:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210025#M1536</guid>
      <dc:creator>MattCooper</dc:creator>
      <dc:date>2010-04-16T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Why doesn't this work?</title>
      <link>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210026#M1537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since you have an editform open you must by definition have a selected object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to delete this object you can have a command button that sets a global boolean and then close the Editform and then in the onunload routine delete the object. The following subs contain the code (I have not tested it)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub cmdDeleteButtonClicked()&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; g_bDelete = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Editform.Close False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub EditForm_OnUnLoad()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If g_bDelete Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ExecuteCommand("Delete")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; g_bDelete = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 11:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/why-doesn-t-this-work/m-p/210026#M1537</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-04-29T11:04:44Z</dc:date>
    </item>
  </channel>
</rss>

