[This is preliminary documentation and subject to change.]
The DependCount method returns the number of dependencies for the event. This property is read-only.
[ lDependCount = ] object.DependCount
DependCount returns the number of dependencies listed in the EnhEvent.Depend array.
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.Depend, EnhEvent.Flatten, EnhEvent.UnFlatten, Editing the Dependencies of an Event
The following example deletes all of the dependencies of an event. Note that this causes the stream compiler objects to recalculate the dependency list for this event when it is converted to low-level syntax.
While e.DependCount > 0
e.Depend(0) = ""
Wend
The following example displays a warning if the user attempts to transmit a file that has more than 20 dependency files.
If e.DependCount > 20 Then
Msgbox "Warning: sending this page will cause " + e.DependCount + " files to be transmitted."
End If