Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Checks if a menubar item is checked.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menubar 6.3 Yes Yes No No No
MBS( "Menubar.IsMenuCommandChecked"; Path )   More


Parameter Description Example value
Path The ID or path to the menu entry.
Use Menubar.ListMenuCommands to find out the IDs and names.


Returns 0, 1 or error.


Checks if a menubar item is checked.
Returns 1 if the menubar has a checkmark.


Checks if debugger is visible:

MBS( "Menubar.IsMenuCommandChecked"; 49260)

Show debugger from within a script:

#The menu command as we got it from Menubar.ListMenuCommands
Set Variable [$DebuggerMenuID; Value:49260]
If [MBS( "Menubar.HasMenuCommand"; $DebuggerMenuID ) = 1]
    If [MBS( "Menubar.IsMenuCommandChecked"; $DebuggerMenuID ) = 1]
        #debugger already visible
        #show debugger
        Set Variable [$r; Value:MBS( "Menubar.RunMenuCommand"; $DebuggerMenuID )]
        Pause/Resume Script [Duration (seconds): ,1]
    End If
    Show Custom Dialog ["Debugger missing in Menubar?"]
End If
#now follows your script that should always run in debugger

See also

Blog Entries

Created 17th June 2016, last changed 17th June 2016

Menubar.HasMenuCommand   -   Menubar.ListMenuCommands

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos