Description: | Removes custom context menu items for the passed in data type or for the passed in item name. |
Syntax: | object.RemoveContextMenuItems(sDataType, sText) |
Parameters: | |
object | Required, the Session object |
sDataType | A string representing the data type to which the custom context menu item belongs. If this parameter is empty, all custom context menu items will be removed from OfficeTalk. For a list of the data type strings, see AddContextMenuitem(). |
sText | An optional string which matches the name of the custom context menu item that you wish to remove. If this parameter is not empty, OfficeTalk will delete a custom context menu item whose data type matches the passed in data type AND whose text matches this paramter. |
Remarks: | None |
Returns: | Nothing |
Example: |
Set session = CreateObject("OfficeTalk.Session")
session.RemoveContextMenuItems("Contacts", "Invoice Customer")