<?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 OnValidate event fires twice in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/onvalidate-event-fires-twice/m-p/708946#M5175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I have noticed that if you have an "OnValidate" event for a control, this event is fired twice when you click OK in the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a little applet to illustrate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unzip the applet and place it in your applets directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fire up ArcPad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the "Bex" toolbar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the "Bex" tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click ok in the form&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will get two messageboxes popping up each triggered by the onvalidate event for the textbox in the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are several (lots of) controls on the form and these contain lots of code, the amount of time spent validating can become significant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions for a way to reduce this overhead?&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, 26 Apr 2012 13:00:18 GMT</pubDate>
    <dc:creator>RolfBroch</dc:creator>
    <dc:date>2012-04-26T13:00:18Z</dc:date>
    <item>
      <title>OnValidate event fires twice</title>
      <link>https://community.esri.com/t5/arcpad-questions/onvalidate-event-fires-twice/m-p/708946#M5175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I have noticed that if you have an "OnValidate" event for a control, this event is fired twice when you click OK in the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a little applet to illustrate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unzip the applet and place it in your applets directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fire up ArcPad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the "Bex" toolbar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the "Bex" tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click ok in the form&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will get two messageboxes popping up each triggered by the onvalidate event for the textbox in the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are several (lots of) controls on the form and these contain lots of code, the amount of time spent validating can become significant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions for a way to reduce this overhead?&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, 26 Apr 2012 13:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/onvalidate-event-fires-twice/m-p/708946#M5175</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2012-04-26T13:00:18Z</dc:date>
    </item>
  </channel>
</rss>

