<?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: VB Script Error when calling GUID in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714079#M5216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems that your line 15 has an addes space between fo and rms below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objEditForm3 = application.map.layers("fc_Species_Point_Flat").fo rms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objEditForm3 = application.map.layers("fc_Species_Point_Flat").forms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 09:23:45 GMT</pubDate>
    <dc:creator>RolfBroch</dc:creator>
    <dc:date>2010-10-15T09:23:45Z</dc:date>
    <item>
      <title>VB Script Error when calling GUID</title>
      <link>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714077#M5214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working in ArcPad studio and I have run into a problem that is driving me insane. I have a geodatabase with two feature classes (point, polygon) the feature classes have near identical attribute tables. I have used ArcPad Studio to create a custom form for each of the feature classes. I also found a sub-routine on another post that populates an editbox on a form with a GUID. Very handy for creating a unique key in the measurement table that is related to each feature class. This routine works great when editing the polygon feature with GPS, it even works great when editing the point feature in ArcPad Windows or by manually adding a point location in ArcPad on my mobile device (Trimble GeoXT 2008). However, when I try to edit the point using GPS in ArcPad, I always seem to pull the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Script Error 800A01AB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Description &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Line 15:, Column : 2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source Text Unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Originally I had the sub-routine set to run on the form's onload event (which as I mentioned works for the polygon and the point when I am not editing with GPS), I have tried setting it to run on the onsetactive event on the page onload and on setactive event, nothing seems to work. I have even moved the editbox to the second page and set the code to run on that page's onload and onsetactive events...nothing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Benjamin Zank&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Sample code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Option Explicit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim varUniqueID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub UniqueID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ' CREATE THE VARAIBLE AND ASSIGN IT THE CREATED GUID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' I commented this varaible out because I delclared it global above in the option explicit...you can delete the global varaible and declare it here if you want...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' globally you can do other stuff with it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; varUniqueID= System.CreateGuid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ' NEXT YOU HAVE TO GRAB THE FORM PAGE AND ASSIGN THE VARAIBLE TO THE TEXTBOX&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim objRS, objSelLayer, objEFPageOneControls3, objEditForm3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objSelLayer = Map.SelectionLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objRS = objSelLayer.Records&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; objRS.Bookmark = Map.SelectionBookmark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objEditForm3 = application.map.layers("fc_Species_Point_Flat").forms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objEFPageOneControls3 = objEditForm3.Pages("PAGE2").Controls&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; objEFPageOneControls3("Edit2").Value = varUniqueID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 17:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714077#M5214</guid>
      <dc:creator>BenjaminZank</dc:creator>
      <dc:date>2010-06-30T17:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: VB Script Error when calling GUID</title>
      <link>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714078#M5215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've run into the same error.&amp;nbsp; Trying to update a GUID field results the same "source text unavailable" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using code similar to this OnOK:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Fields("TESTGUID").Value = Application.UserProperties("sectionGUID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where Application.UserProperties("sectionGUID") is a managed global variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From another post, it seems the ESRI GUID field can only be managed by the system, although I've still confused if it only applies to GlobalIDS or all GUID fields.&amp;nbsp; Updating these fields through SQL or ArcView is possible, but ArcPad auto populates it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a work around, I've created text fields in the database which do not have this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can ESRI or somebody else chime in and confirm that ArcPad will not allow you to edit GUID fields?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 20:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714078#M5215</guid>
      <dc:creator>RobertMcCann</dc:creator>
      <dc:date>2010-10-12T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: VB Script Error when calling GUID</title>
      <link>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714079#M5216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems that your line 15 has an addes space between fo and rms below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objEditForm3 = application.map.layers("fc_Species_Point_Flat").fo rms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objEditForm3 = application.map.layers("fc_Species_Point_Flat").forms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 09:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/vb-script-error-when-calling-guid/m-p/714079#M5216</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-10-15T09:23:45Z</dc:date>
    </item>
  </channel>
</rss>

