DeleteRecentItem

Description

Removes a recent menu item from the application menu.

Applies to

RibbonApplicationMenu controls

Syntax

controlname.DeleteRecentItem ( Long Index )

Argument

Description

controlname

The name of the RibbonApplicationMenu control from which you want to remove the recent menu item.

Index

The index of the recent menu item which you want to delete.


Return value

Long.

Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, returns null.

Examples

This example inserts the "RecentItem1" recent menu item and then deletes it according to its index number.

Integer li_Return
Long ll_Index
RibbonApplicationMenu lr_AppMenu

ll_Index = lr_AppMenu.InsertRecentItemFirst ("RecentItem1", "Ue_RecentItem1Clicked")
li_Return = lr_AppMenu.DeleteRecentItem (ll_Index)

See also

AddMasterSeparatorItem

ClearRecentItems

DeleteMasterItem

GetMasterItem

GetMasterItemCount

GetRecentItem

GetRecentItemCount

GetRecentTitle

InsertMasterItem

InsertMasterItemFirst

InsertMasterItemLast

InsertRecentItem

InsertRecentItemFirst

InsertRecentItemLast

SetMasterItem

SetRecentItem

SetRecentTitle