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

Glossary Item Box

Description

Returns a reference to the fields of the current record.

Property type

Read-only property

Syntax

Set variable = object.Fields

Return Type

Remarks

Use the Fields property to reference the fields of the current record in an Edit Form. This allows you to access fields that are not necessarily bound to any controls on the form.

Example

Set Time and Date Attribute Example
Sets the Time and Date attributes of the shapefile to the current system date and time.
Set Time and Date Attribute Example (VBScript)Copy Code
Sub InitializeAttributes
      'Get a reference to the form
      Dim pForm
      Set pForm = ThisEvent.Object
      
      'Set the Time and Date attributes with the current system time/date
      pForm.Fields("Time").Value = FormatDateTime(Now,vbLongTime)
      pForm.Fields("Date").Value = FormatDateTime(Now,vbShortDate)
      
      'Free resources
      Set pForm = Nothing
End Sub

See Also

© 2012 All Rights Reserved.