Returns the bookmark of the currently selected feature.
Read-only property
variable = object.SelectionBookmark |
|
Long
0 is returned if no feature is selected.
- Geometric Objects Example
- ShapeType Example
- Timestampe Attribute 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 | |