EnhEvents.LastAdd

[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.

Syntax

[ Set oEvent = ] object.LastAdd 
 

Parts

object
Object expression that resolves to an EnhEvents object.
oEvent
EnhEvent that receives the last event added to the collection.

QuickInfo

  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.

See Also

EnhEvent.Handle, EnhEvents.Add, EnhEvents.AddText, EnhEvents.FindHandle, EnhEvents.FindTime

Examples

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