[This is preliminary documentation and subject to change.]
The LastAdd property returns a reference to the event that was last added to the enhancement stream. This property is read-only.
[ Set oEvent = ] object.LastAdd
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in stream.idl.
Import Library: Included as a resource in stream.dll.
Unicode: Yes.
EnhEvent.Handle, EnhEvents.Add, EnhEvents.AddText, EnhEvents.FindHandle, EnhEvents.FindTime
The following example displays a message box containing the text Second Event, because that was the event most recently added to the collection.
'Declare variables
Dim Ev As IEnhEvents
Dim e As IEnhEvent
'Create the EnhEvents collection
Set Ev = New EnhEvents
'Add two events to the collection
Ev.Add 35, "First Event"
Ev.Add 25, "Second Event"
'retrieve the last-added event
Set e = Ev.LastAdd
'display the name of the last-added event
MsgBox e.Name