<?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: variable not reseting after form closes in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/variable-not-reseting-after-form-closes/m-p/182504#M1304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fugured it out...my code was right but I moved it to a new sub rotine that was actually setting the textboxes with the values....I grabbed the value then, as it was reset at each click in the listbox...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 19:40:17 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2010-12-10T19:40:17Z</dc:date>
    <item>
      <title>variable not reseting after form closes</title>
      <link>https://community.esri.com/t5/arcpad-questions/variable-not-reseting-after-form-closes/m-p/182503#M1303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a form that opens when user clicks a feature point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the second tab a listbox populates with the related features to the main point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when the user changes the selection in the list box the form chages the record&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now want to popup a message box with a value in one of the textboxes on the form when the user changes the selection in the listbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This also works fine....UNTILL I close the form...I click on another point and the form reopens...and then everytime I change the selection in the listbox the messagebox&amp;nbsp; that pops up keeps giving me the last one selected before the form was closed the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its drivign me nuts....this runs "OnSelChange" from the listbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to set the vaiable to "" at the beginning and end of the sub...nothing changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to clear the listbox on "OnValdate" and "form close"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cant figure this out....Anyone have any thoughts or suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Dim objRS, objSelLayer, objEFPageOneControls4, objEditForm4, objEFPageOneControls2, objEditForm2
Set objSelLayer = Map.SelectionLayer
Set objRS = objSelLayer.Records

objRS.Bookmark = Map.SelectionBookmark
Set objEditForm4 = application.map.layers("Supports").forms("EDITFORM")
Set objEFPageOneControls4 = objEditForm4.Pages("page2").Controls

Dim varMUTCD_Code
varMUTCD_Code = ""
varMUTCD_Code = objEFPageOneControls4("mutcd_code").Value
msgbox "MUTCD CODE: " &amp;amp; varMUTCD_Code
varMUTCD_Code = ""
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 17:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/variable-not-reseting-after-form-closes/m-p/182503#M1303</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-12-10T17:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: variable not reseting after form closes</title>
      <link>https://community.esri.com/t5/arcpad-questions/variable-not-reseting-after-form-closes/m-p/182504#M1304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fugured it out...my code was right but I moved it to a new sub rotine that was actually setting the textboxes with the values....I grabbed the value then, as it was reset at each click in the listbox...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 19:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/variable-not-reseting-after-form-closes/m-p/182504#M1304</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-12-10T19:40:17Z</dc:date>
    </item>
  </channel>
</rss>

