GetRecentItemCount
PowerScript function
Description
Determines the total number of the recent menu items in the
application menu.
Applies to
RibbonApplicationMenu controls
Syntax
|
1 |
controlname.GetRecentItemCount () |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonApplicationMenu control |
Return value
Long.
Returns the total number of menu items in the recent menu. If the
recent menu contains no items, returns 0. If an error occurs, returns
-1.
Usage
The recent menu can have only one level and can contain no more than
9 items.
Examples
This example inserts three recent menu items and then counts the
total number of recent menu items (which returns 3).
|
1 2 3 4 5 6 7 |
Long ll_Return, ll_Count RibbonApplicationMenu lr_AppMenu ll_Return = lr_AppMenu.InsertRecentItem(1,"RecentMenu2","Ue_RecentItem2Clicked") ll_Return = lr_AppMenu.InsertRecentItemFirst("RecentMenu1","Ue_RecentItem1Clicked") ll_Return = lr_AppMenu.InsertRecentItemLast("RecentMenu3","Ue_RecentItem3Clicked") ll_Count = lr_AppMenu.GetRecentItemCount() |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest