Is This Content Helpful?
We're glad to know this article was helpful.
Events on the MapObjects TrackingLayer are temporary. The following Visual Basic code sample demonstrates how to store the events permanently in a shapefile or an existing ArcSDE layer.
Dim tl As MapObjects2.TrackingLayer
Dim recs As MapObjects2.Recordset
Set recs = Map1.Layers(0).Records
Dim i As Integer
For i = 0 To tl.EventCount - 1
Set recs.Fields("Shape").Value = tl.Event(i).Shape
Change the library name from MapObjects2 to MapObjects to use the code in a MapObjects 1.x project. MapObjects 1.x supports only point shapes as events.