Removes a group from the control.


Syntax

rv = Send_Message(Ctrl, "OLE.RemoveGroup", Group)

Parameters

ParameterDescription
GroupIndex to an existing group

Remarks

The RemoveGroup method removes a group and all its items from the control. The Group parameter specifies the index of the group to be deleted. If you specify an index to a group that does not exist, then nothing happens.

If you only want to delete items, then use the RemoveItem or ClearGroup methods.

If you need to delete all groups, then use the Clear method instead.

Example

// Remove the second group 
Send_Message(@Window:".OLE_SHORTCUT", "OLE.RemoveGroup", 2)

See Also

InsertGroupRemoveItemClearGroupClear

  • No labels