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

Glossary Item Box

Description

Returns a reference to the applet's forms.

Property type

Read-only property

Syntax

Set variable = object.Forms

Return Type

Forms object

Example

Displays the number of forms present in the first applet loaded in a message box.
Get Applet Form Example (VBScript)Copy Code
Sub GetApplet1Forms
      Dim objMyApplet, objTheForms
      Set objMyApplet = Application.Applets.Item (1)
      Set objTheForms = objMyApplet.Forms
      Application.MessageBox "The applet has " & objTheForms.Count & " forms", apInformation
End Sub
Get Applet Form Example (JScript)Copy Code
function GetApplet1Forms()
{
      var objMyApplet = Application.Applets.Item(1);
      objTheForms = objMyApplet.Forms;
      Application.MessageBox("The applet has " + objTheForms.Count + " forms");
}

See Also

© 2013 All Rights Reserved.