Can't access VBS from APPLETS Object in ArcPad 10

2517
3
05-12-2011 07:48 AM
RobertFowler
New Contributor
I am porting over a custom application from ArcPad 7.1 to 10.0. I have a VBSript file called "A1Field.vbs". In 7.1, placing this file in the ArcPad Applets folder allowed its functions to be accessible to Layers, Forms, etc by calls like this: onload=Call Applets("A1Field").Execute("InitRouteForm"). This no longer works in v10.0. The message is: Script Error 800A01A8 Microsoft VBScript runtime error Object required 'Applets(...)' [Line: 1, Column: 1] Source Text Unavailable.
Any thoughts?
Thanks,
Bob
Tags (3)
0 Kudos
3 Replies
DeniseKing
Esri Regular Contributor
Hi Bob,

You might find some information by researching Code Error 800A01A8 on a site similar to this link, http://www.computerperformance.co.uk/Logon/code/code_800A01A8.htm. If you have current ArcPad maintenance, please feel free to submit your challenge using Esri Support site links for phone, email, webform, or  chat http://support.esri.com/en  to help troubleshoot this issue. Please include ArcPad version, service  pack or build information and provide screenshots of  errors or dialogs  which illustrate behavior you are reporting. Does the behavior occur on both desktop PC and mobile PC or only one of these platforms? To research this further, we will need you to provide sample of the project resulting in the error. Please note that we do not write or debug scripting in Support Services. However, you can  send me the applet, the associated data and VBS file if you would like  me to verify a suspected bug. If you suspect a bug, we ask that you  isolate the issue to the smallest reproducible case. If you would like  help writing the applet (script, etc), we suggest posting to the User  Forums, contacting your Regional Representative, or contacting  Professional Services.

Thanks,
Denise
0 Kudos
RobertFowler
New Contributor
Thanks, Denise. I have solved my own problem, though. When deleting the custom toolbars I had in the .apa file for 7.1 and moving them to ArcPad.apx, I inadvertently deleted the Script entry pointing to my VBS file. I now have the project working properly after some additional code tweaks. For the benefit of myself and others, is there any documentation on porting pre version 10 projects to ArcPad 10.0?
0 Kudos
DeniseKing
Esri Regular Contributor
Hi Bob,

There isn't official documentation but this is a great idea. I encourage you to post this on our Ideas site so your idea can be discussed and voted on by other ArcPad users. http://ideas.arcgis.com/ideaHome?c=09a300000004xET

Denise