Events (Collection)

Member of:

Documents collection

Description:

Represents these event collections objects within the document collection:

Use these objects to enable or disable document events in a 8.0 client environment.

Tip:

All collections have a method named “Item(NameOrIndex).” This is the default method for all collections and returns an item in the collection at a particular index or with a specific name. Use brackets “[]” to represent calls to theItem (Method). For example, these statements cause identical behavior: myItem = Documents[1] myItem = Documents.Item(1) myItem = Documents["StartUp.bqy"] myItem = Documents.Item("StartUp.bqy")

Example:

This example shows how shows how to count and display the sections in an Interactive Reporting document (.bqy) that contain document events in a Console window:

for(I=1 ; I <= Documents["Sample1.bqy"].Events.Count; I ++)
         Console.Write (ActiveDocument.Sections[I].Name+"\r\n")

Methods:

Item(Value As NameOrIndex)

Properties:

Read-write: Count As Number

Objects:

DesktopClient, PlugInClient, ThinClient, Scheduler, SmartViewClient