ArcPad Scripting Object Model
SelectionBookmark Property
See Also  Example  Send comments on this topic.
Map Object : SelectionBookmark Property

Glossary Item Box

Description

Returns the bookmark of the currently selected feature.

Property type

Read-only property

Syntax

variable = object.SelectionBookmark

Return Type

Long

Remarks

0 is returned if no feature is selected.

Example

Captures the date and time from the GPS and stores it in the DTSTAMP attribute field of the selected feature. This example assumes the attribute DTSTAMP exists.
TimeStamp Attribute Example (VBScript)Copy Code
Sub DTCapture
  If Map.SelectionLayer Is Nothing Then Exit Sub
Dim pSelRS
  Set pSelRS = Map.SelectionLayer.Records
pSelRS.Bookmark = Map.SelectionBookmark
  pSelRS.Fields("DTSTAMP").Value = FormatDateTime(GPS.Properties("UTC"))
pSelRS.Update
  Set pSelRS = Nothing
End Sub

See Also

© 2012 All Rights Reserved.