Removes an item from a group.

Syntax

rv = Send_Message(Ctrl, "OLE.RemoveItem", Group, Item)

Parameters

ParameterDescription
GroupIndex to an existing group
ItemIndex to an existing item

Remarks

The RemoveItem method removes an item from a group. The Group parameter specifies the index of an existing group. The Item parameter specifies the index of the item within the group to be deleted. If you specify an index to a group or item that does not exist, then nothing happens.

If you need to delete all items in a group, then use the ClearGroup method instead.

Example

// Remove the second item from the first group 
Send_Message(@Window:".OLE_SHORTCUT", "OLE.RemoveItem", 1, 2)

See Also

InsertItemClearGroup

  • No labels