Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Menu.FindItemWithTitle
Finds a menu entry with given title in a menu.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 5.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Menu.FindItemWithTitle"; menu; Title { ; Recursive } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
menu | The reference to the menu. Please create one with Menu.CreateMenu. | $menu | |
Title | The title text to search. | ||
Recursive | Pass 1 to look into sub menus recursively. Default is 0 to only search current menu. |
1 | Optional |
Result
Returns reference number or error.
Description
Finds a menu entry with given title in a menu.See also MenuItem.GetTittle and MenuItem.SetTitle.
Examples
Find an item:
MBS("Menu.FindItemWithTitle"; $menu; "Test")
See also
Release notes
- Version 13.0
- Added recursive parameter to Menu.FindItemWithTag and Menu.FindItemWithTitle functions.
Blog Entries
FileMaker Magazin
This function is free to use.
Created 29th April 2015, last changed 6th January 2023