ArcPad Scripting Object Model
Count Property
See Also  Example  Send comments on this topic.
Applets Collection : Count Property

Glossary Item Box

Description

Returns the number of applet objects.

Property type

Read-only property

Syntax

variable = object.Count

Return Type

Integer

Example

AppletInfo displays the name of each loaded applet in the console window.
Applet Example (VBScript)Copy Code
Sub AppletInfo
      Dim intNumApplets, objCurrApplet, intI
      intNumApplets = Application.Applets.Count
      If (0 = intNumApplets) Then
             Console.Print "There are no applets in the current ArcPad session."
             Exit Sub
      End If
      For intI = 1 to intNumApplets
            Set objCurrApplet = Application.Applets (intI)
            Console.Print "Applet " & CStr(intI) & " is called " & objCurrApplet.Name
      Next
      Set objCurrApplet = Nothing
End Sub
Applet Example (JScript)Copy Code
function AppletInfo()
{
      var objCurrApplet
      var intNumApplets = Application.Applets.Count;
      if (0 == intNumApplets)
      {
            Console.Print("There are no applets in the current map.");
            return;
      }
      for (var intI = 1; intI<=intNumApplets; intI++)
      {
            objCurrApplet = Application.Applets (intI);
            Console.Print("Applet " + intI + " is called " + objCurrApplet.Name);
      }
      objCurrApplet = null;
}

See Also

© 2013 All Rights Reserved.