ArcPad Scripting Object Model
Name Property
See Also  Example  Send comments on this topic.
Applet Object : Name Property

Glossary Item Box

Description

Returns the name of the applet.

Property type

Read-only property

Syntax

variable = object.Name

Return Type

String

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.