Description
Removes all recent menu items from the application menu.
Applies to
RibbonApplicationMenu controls
Syntax
controlname.ClearRecentItems ( )
Argument |
Description |
---|---|
controlname |
The name of the RibbonApplicationMenu control from which you want to remove the recent menu items. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Examples
This example inserts three recent menu items and then removes all of them.
Integer li_Return Long ll_Return RibbonApplicationMenu lr_AppMenu ll_Return = lr_AppMenu.InsertRecentItem (1,"Recent2", "Ue_RecentItem2Clicked") ll_Return = lr_AppMenu.InsertRecentItemFirst ("Recent1", "Ue_RecentItem1Clicked") ll_Return = lr_AppMenu.InsertRecentItemLast ("Recent3", "Ue_RecentItem3Clicked") li_Return = lr_AppMenu.ClearRecentItems()
See also