<?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 ArcPad 10 Script Error in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283521#M2050</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 get a script error when starting a custom application in ArcPad 10. This occurs at the login screen. This same script ran without any error in ArcPad 8. This is the error I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Script Error 800A01A8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Source Unavailable&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: 65, Column :5]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source Text Unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I hit ok on the error box it disappears and I can enter my login info and everything else functions well. This happens on both a Trimble GeoXH 2008 and a GeoXH600, both with ArcPad 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the beginning of the script (Line 65 mentioned in the error is in bold text):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Option Explicit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On error resume next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'exit flag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim g_DoExit &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; g_DoExit = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' This sub launches when ArcPad opens, to get the master path to the ArcPad location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' and and also laucnhes the log in form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub StartupArcPad&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the Path to the ArcPad application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strArcPadPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strArcPadPath = Application.Filepath&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Strip off ArcPad.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dim strApplicationPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strApplicationPath = Left(strArcPadPath,InStrRev(strArcPadPath,"\"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Set the path to a global varaible for further use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Application.UserProperties("AppPath")&amp;nbsp; = strApplicationPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Launch the log in form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Forms("Login").show&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'if exit flag is set - then quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If (True = g_DoExit) Then &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Application.Quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Exit Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' Sets up the form for for the Login information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub Loadform&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the deviceID form the suplyed text file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strSystemPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objDeviceFile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strDeviceID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strSystemPath = Application.UserProperties("AppPath") &amp;amp; "System\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objDeviceFile = Application.CreateAppObject("file")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Check to see if the DeviceID.txt file is on the devide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if objDeviceFile.Exists(strSystemPath &amp;amp; "DeviceID.txt") then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Read the file and set the Device ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objDeviceFile.Open strSystemPath &amp;amp; "DeviceID.txt"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDeviceID = objDeviceFile.ReadLine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'The File is missing Set the Device ID to missing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDeviceID = "Device ID Missing See GIS Dept."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'get the form and load the Device ID to the correct field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'get a refference to this form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objLoginform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Set objLoginform = Forms("Login")&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Get a refference to the page and controls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objPage1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objPage1 = objLoginform.Pages("PAGE1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'set the DeviceID controll to the proper value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; objPage1.Controls("txtDeviceID").Value = strDeviceID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help solving this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj1339&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 16:37:55 GMT</pubDate>
    <dc:creator>GerardFinan</dc:creator>
    <dc:date>2013-05-14T16:37:55Z</dc:date>
    <item>
      <title>ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283521#M2050</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 get a script error when starting a custom application in ArcPad 10. This occurs at the login screen. This same script ran without any error in ArcPad 8. This is the error I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Script Error 800A01A8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Source Unavailable&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: 65, Column :5]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source Text Unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I hit ok on the error box it disappears and I can enter my login info and everything else functions well. This happens on both a Trimble GeoXH 2008 and a GeoXH600, both with ArcPad 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the beginning of the script (Line 65 mentioned in the error is in bold text):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Option Explicit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On error resume next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'exit flag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim g_DoExit &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; g_DoExit = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' This sub launches when ArcPad opens, to get the master path to the ArcPad location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' and and also laucnhes the log in form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub StartupArcPad&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the Path to the ArcPad application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strArcPadPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strArcPadPath = Application.Filepath&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Strip off ArcPad.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dim strApplicationPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strApplicationPath = Left(strArcPadPath,InStrRev(strArcPadPath,"\"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Set the path to a global varaible for further use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Application.UserProperties("AppPath")&amp;nbsp; = strApplicationPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Launch the log in form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Forms("Login").show&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'if exit flag is set - then quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If (True = g_DoExit) Then &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Application.Quit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Exit Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' Sets up the form for for the Login information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub Loadform&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Get the deviceID form the suplyed text file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strSystemPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objDeviceFile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim strDeviceID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; strSystemPath = Application.UserProperties("AppPath") &amp;amp; "System\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objDeviceFile = Application.CreateAppObject("file")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'Check to see if the DeviceID.txt file is on the devide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if objDeviceFile.Exists(strSystemPath &amp;amp; "DeviceID.txt") then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Read the file and set the Device ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objDeviceFile.Open strSystemPath &amp;amp; "DeviceID.txt"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDeviceID = objDeviceFile.ReadLine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'The File is missing Set the Device ID to missing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDeviceID = "Device ID Missing See GIS Dept."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'get the form and load the Device ID to the correct field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'get a refference to this form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objLoginform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Set objLoginform = Forms("Login")&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Get a refference to the page and controls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim objPage1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objPage1 = objLoginform.Pages("PAGE1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 'set the DeviceID controll to the proper value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; objPage1.Controls("txtDeviceID").Value = strDeviceID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help solving this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj1339&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 16:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283521#M2050</guid>
      <dc:creator>GerardFinan</dc:creator>
      <dc:date>2013-05-14T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283522#M2051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this is old, but I have the same problem. I don't think the custom script is the problem because all my loaded scripts contain a blank line 65.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't find any other reference to this issue, any ideas would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 06:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283522#M2051</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2013-06-03T06:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283523#M2052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have the same code as the #1 post?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcPad 10, &lt;/SPAN&gt;&lt;STRONG&gt;Application.Filepath&lt;/STRONG&gt;&lt;SPAN&gt; will return a full path to ArcPad.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, Just below these lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
'Set the path to a global varaible for further use
 Application.UserProperties("AppPath") = strApplicationPath
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to print out this global variable (AppPath) to make sure it's a correct path that you want to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MsgBox (strApplicationPath)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283523#M2052</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2021-12-11T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283524#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not using the same code - I'm using an edited version of the Login form applet found here: &lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=16477"&gt;http://arcscripts.esri.com/details.asp?dbid=16477&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the login applet as provided above, the error is actually at Line 61 Column 4. I'll wait to post my own code because it is oft-changing and also I don't want to put up an entire project here just yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283524#M2053</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2013-06-04T11:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283525#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ArcPad Login Form from above link worked for me.&amp;nbsp; I did not get any errors with ArcPad 10.0.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I just did:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Extract the zip file to Applets folder (C:\Users\Public\Documents\ArcPad\Applets)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Open up ArcPad application and and set the path to Applets to the above directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Restart ArcPad, I've got a login form.&amp;nbsp; Selected a user from drop down list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Back to Arcpad Studio, checked to see if "LoggedInEmployee" is available by go to ArcPad &amp;gt;&amp;gt; Send Script and type in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MsgBox (Application.UserProperties("LoggedInEmployee"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hit "OK"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.&amp;nbsp; I've got a username return in a message box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might have to double check your implementation!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 14:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283525#M2054</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2013-06-04T14:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283526#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I followed exactly that method, extract zip to applets folder, set the applet path to that folder. The global variable is set correctly, as are all the others I set in my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error appears before any user input, and only when an applet is being loaded. Strange behaviour, but like the OP, there appears to be no other adverse effects on the application. It wouldn't bother me but it's just something else I have to tell our surveyors to 'just ignore that error box - I can't get rid of it'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 07:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283526#M2055</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2013-06-05T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283527#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Review &lt;/SPAN&gt;&lt;STRONG&gt;Application::OnStartup&lt;/STRONG&gt;&lt;SPAN&gt; event and&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Applet::Onload&lt;/STRONG&gt;&lt;SPAN&gt; event to see if you have code under those two events.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283527#M2056</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2013-06-05T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad 10 Script Error</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283528#M2057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the Login applet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
APPLET
&amp;nbsp;&amp;nbsp; |-- onload=Call LoadLoginForm()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-10-script-error/m-p/283528#M2057</guid>
      <dc:creator>JamesNunn</dc:creator>
      <dc:date>2021-12-11T13:43:26Z</dc:date>
    </item>
  </channel>
</rss>

