Attributes vs. properties

Forms, pages, and controls have attributes that define their behavior (for example, name, caption, width, and so on). These attributes are set at design time in ArcPad Studio and cannot be accessed or modified at run time via scripts. However, the form, page, and control objects do also have properties that can be accessed and, in some cases, modified at run time via scripts. Not all attributes have corresponding properties and not all properties have corresponding attributes. The following tables show the properties for the Form, Page, and Control objects and, where applicable, their corresponding attributes.

Form objects

The following table shows the properties and applicable attributes for Form objects:

Properties

Attributes

Notes

ActivePage

N/A

Caption

caption

Read/write

Fields

N/A

N/A

hWnd

N/A

N/A

Mode

N/A

N/A

Name

name

Read-only

Pages

N/A

N/A

Page objects

The following table shows the properties and applicable attributes for Page objects:

Properties

Attributes

Notes

Caption

caption

Read/write

Controls

N/A

N/A

hWnd

N/A

N/A

Index

N/A

N/A

IsActive

N/A

N/A

Name

name

Read-only

Parent

N/A

N/A

Control objects

The following table shows the properties and applicable attributes for Control objects:

Properties

Attributes

Notes

DefaultValue

defaultvalue

Read/write. The defaultvalue attribute is supported by the CheckBox, ComboBox, DateTime, DomainField, Edit, ImageBox, ListBox, Silder, and SymbologyField controls.

Enabled

readonly

Read/write. The readonly attribute is supported by the CheckBox, ComboBox, DateTime, DomainField, Edit, ImageBox, ListBox, RadioButton, Slider, and SymbologyField controls.

Field

field

Read-only. The field attribute is supported by the CheckBox, ComboBox, DateTime, DomainField, Edit, ImageBox, ListBox, RadioButton, and Slider controls.

hWnd

N/A

N/A

Index

N/A

N/A

ListCount

N/A

N/A

ListIndex

N/A

N/A

Name

name

Read-only. All controls support the name attribute.

Parent

N/A

N/A

Properties

listtable

Read-only. The listtable attribute is supported by ComboBox and ListBox controls.

Text

caption

Read/write. The caption attribute is supported by the Button, CheckBox, and RadioButton controls.

Type

N/A

N/A

Value

value

Read/write

Visible

N/A

N/A


2/7/2013