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

Glossary Item Box


Returns the name of the form.

Property type

Read-only property


variable = object.Name

Return Type



List Forms Example
LayerForms determines if there is an Edit Form and/or Identify Form attached to a layer. It also determines the number of other layer forms, if any.
List Forms Example (VBScript)Copy Code
Sub LayerForms (objLayer, blnEForm, blnIForm, intOForms)
  Dim objFrm
  'Initialize arguments
  blnEForm = False
  blnIForm = False
  intOForms = 0
  If Not (objLayer.Forms.Count = 0) Then
    For Each objFrm in objLayer.Forms
      If objFrm.Name = "EditForm" Then
        blnEForm = True
      Elseif objFrm.Name = "IdentifyForm" Then
        blnIForm = True
        intOForms = intOForms + 1
      End If
  End If
  MsgBox "Edit Form? " & CStr(blnEForm) & VBCr &_
         "Identify Form? " & CStr(blnIForm) & VBCr &_
        "# Other Forms: " & CStr(intOForms) _
        , vbInformation, "Layer " & objLayer.Name
End Sub

See Also

© 2013 All Rights Reserved.