activate applet

350
1
12-10-2018 03:23 PM
TOMBELL
New Contributor III

Can I activate an applet from the ArcPad.APX? 

I have a data collection applet which is not used with a map.  I can get a reference to the applet but cannot activate it.

I copied the following VBS from the Studio Help and the first three lines work but not combination seems to open or activate the applet.

Set objLoggerApplet = Application.Applets.Item (1)
Set objTheForms = objLoggerApplet.Forms
Application.MessageBox "The applet has " & objTheForms.Count & " forms", apInformation


Application.Applets.Item(1).Run

or

Application.Applets.Item(1).Activate

or

objLoggerApplet.Activate

0 Kudos
1 Reply
StephenQuan1
Esri Contributor

Could it be that you have multiple applets, and, Application.Applets.Item(1) refers to the 'wrong' applet?

0 Kudos