See Also Example
Returns the list of verbs Not available at design time; read-only at run time. an object supports.
ObjectVerbs is a zero-based string array. Use this property along with the ObjectVerbsCount property to get the verbs supported by an object. These verbs are used by the Verb property to determine an action to perform when an OLE object is activated (set Action = 7).
Note The Verb property provides an index to the ObjectVerbs array.
The first verb in the ObjectVerbs array, ObjectVerbs(0), is the default verb. If the Verb property has not been set, this is the action performed when the object is activated.
The remaining verbs in the array can be displayed in a menu. If it is appropriate to display the default verb in a menu (in most cases this is true), then the default verb will have two entries in the ObjectVerbs array.
Applications that display OLE objects typically include an Object command on the Edit menu. When the user selects Edit Object, a cascading menu displays the object's verbs. Use the ObjectVerbs, ObjectVerbsCount, and ObjectVerbFlags properties to create such a menu at run time.
The list of verbs an object supports may vary, depending on the state of the object. To update the list of verbs an object supports, set Action = 17 (Fetch Verbs). Be sure to update the list of verbs before presenting it to the user.
To automatically display the verbs in the ObjectVerbs array in a pop-up menu when the user clicks an object with the right mouse button, set the AutoVerbMenu property to True.
Note Each object supports three special verbs which may or may not be listed in the ObjectVerbs property. These verbs are represented by the values 1, 2, and 3. They are used by the Verb property to show, open, or hide an object.
Chapter 22, "Object Linking and Embedding (OLE)"