EnhEvent.DependCount

[This is preliminary documentation and subject to change.]

The DependCount method returns the number of dependencies for the event. This property is read-only.

Syntax

[ lDependCount = ] object.DependCount
 

Parts

object
Object expression that resolves to an EnhEvent object.
lDependCount
Long that contains the number of dependency files for this event.

Remarks

DependCount returns the number of dependencies listed in the EnhEvent.Depend array.

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.Depend, EnhEvent.Flatten, EnhEvent.UnFlatten, Editing the Dependencies of an Event

Examples

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