OleDoVerb()

Performs an action on an attached or embedded OLE object. The action depends on the object.

Token ID

AFTKN_DOVERB or 620

Syntax

VOID OleDoVerb(ANSISTRING Verb; 
                WORD AttachmentIndex)

Parameters

Verb As ANSISTRING

Action to perform on an OLE object. If you open an item with two attached objects—a Paintbrush Picture and WordPerfect 6.0 document—the following example opens the second attached object (WP object) in WordPerfect for editing: Application (A1; "WPOffice"; Default; "US") OleDoVerb (Verb: "Edit"; AttachmentIndex: 1)

AttachmentIndex As WORD

Attachment index number (zero-based).