<?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: Click the button and capture time in ArcPad in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/click-the-button-and-capture-time-in-arcpad/m-p/33566#M216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this, I think it should work for you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Dim pTheControls
Set pTheControls = ThisEvent.Object.Parent.Controls 
pTheControls("txtStart").Value = FormatDateTime(Now, 3)
Set pTheControls= Nothing
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:19:02 GMT</pubDate>
    <dc:creator>ThaiTruong</dc:creator>
    <dc:date>2021-12-10T21:19:02Z</dc:date>
    <item>
      <title>Click the button and capture time in ArcPad</title>
      <link>https://community.esri.com/t5/arcpad-questions/click-the-button-and-capture-time-in-arcpad/m-p/33565#M215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to make this work? I'm trying to create a custom button that when the user click the current time will be captured into a text box (next to the button). So far I try the following code, but it didn't work;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pTheControls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pTheControls = ThisEvent.Object.Controls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pTheControls("txtStart").Value = FormatDateTime(Now, 3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I placed this code under onclick event of the button (btnstart). Can someone point me to the right direction please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13941[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 14:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/click-the-button-and-capture-time-in-arcpad/m-p/33565#M215</guid>
      <dc:creator>SarawutTangadunrat</dc:creator>
      <dc:date>2012-04-30T14:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Click the button and capture time in ArcPad</title>
      <link>https://community.esri.com/t5/arcpad-questions/click-the-button-and-capture-time-in-arcpad/m-p/33566#M216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this, I think it should work for you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Dim pTheControls
Set pTheControls = ThisEvent.Object.Parent.Controls 
pTheControls("txtStart").Value = FormatDateTime(Now, 3)
Set pTheControls= Nothing
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/click-the-button-and-capture-time-in-arcpad/m-p/33566#M216</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2021-12-10T21:19:02Z</dc:date>
    </item>
  </channel>
</rss>

