<?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: cannot set a form caption in code in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/cannot-set-a-form-caption-in-code/m-p/286464#M2084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All,&lt;BR /&gt;&lt;BR /&gt;I cannot set a form caption in code.&lt;BR /&gt;The subroutine is called from the page onLoad/onSetactive event. But the form caption does not change.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sub getPageNum(pageNum)&lt;BR /&gt; Dim numPages&lt;BR /&gt; numPages = 0&lt;BR /&gt; &lt;BR /&gt; Dim mForm&lt;BR /&gt; Set mForm =&amp;nbsp; ThisEvent.Object.Parent&lt;BR /&gt; &lt;BR /&gt; Dim pPage&lt;BR /&gt; For Each pPage In mForm.Pages&lt;BR /&gt;&amp;nbsp; numPages = numPages + 1&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt; mForm.Caption = Application.Map.EditLayer.Name + " 1 of " + cStr(numPages)&lt;BR /&gt;End Sub&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It might have to do with how you set the form object? Look at the help for the Object Property. I attached an applet that has a form with 2 pages. Switching the pages on the form changes the form's caption.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 15:22:34 GMT</pubDate>
    <dc:creator>Almarde_Ronde</dc:creator>
    <dc:date>2010-07-15T15:22:34Z</dc:date>
    <item>
      <title>cannot set a form caption in code</title>
      <link>https://community.esri.com/t5/arcpad-questions/cannot-set-a-form-caption-in-code/m-p/286463#M2083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot set a form caption in code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The subroutine is called from the page onLoad/onSetactive event. But the form caption does not change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub getPageNum(pageNum)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim numPages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; numPages = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim mForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set mForm =&amp;nbsp; ThisEvent.Object.Parent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim pPage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; For Each pPage In mForm.Pages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; numPages = numPages + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mForm.Caption = Application.Map.EditLayer.Name + " 1 of " + cStr(numPages)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/cannot-set-a-form-caption-in-code/m-p/286463#M2083</guid>
      <dc:creator>xiaoyizhang</dc:creator>
      <dc:date>2010-07-14T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: cannot set a form caption in code</title>
      <link>https://community.esri.com/t5/arcpad-questions/cannot-set-a-form-caption-in-code/m-p/286464#M2084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All,&lt;BR /&gt;&lt;BR /&gt;I cannot set a form caption in code.&lt;BR /&gt;The subroutine is called from the page onLoad/onSetactive event. But the form caption does not change.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sub getPageNum(pageNum)&lt;BR /&gt; Dim numPages&lt;BR /&gt; numPages = 0&lt;BR /&gt; &lt;BR /&gt; Dim mForm&lt;BR /&gt; Set mForm =&amp;nbsp; ThisEvent.Object.Parent&lt;BR /&gt; &lt;BR /&gt; Dim pPage&lt;BR /&gt; For Each pPage In mForm.Pages&lt;BR /&gt;&amp;nbsp; numPages = numPages + 1&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt; mForm.Caption = Application.Map.EditLayer.Name + " 1 of " + cStr(numPages)&lt;BR /&gt;End Sub&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It might have to do with how you set the form object? Look at the help for the Object Property. I attached an applet that has a form with 2 pages. Switching the pages on the form changes the form's caption.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 15:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/cannot-set-a-form-caption-in-code/m-p/286464#M2084</guid>
      <dc:creator>Almarde_Ronde</dc:creator>
      <dc:date>2010-07-15T15:22:34Z</dc:date>
    </item>
  </channel>
</rss>

