CNS Menu

Dynamic Menus

<- Back to CNS Menu function list

CNSMenu_GetMenuValue

Description

This function will return the user-defined value of the last selected menu item. When defining your menu items, you can specify any data you want, and then that menu item is selected, you can use this function in the script that is called to retrieve that data. If no value is specified for a menu item, this function will return the menu item name just as the CNSMenu_GetMenuChoice function does. FileMaker's Get (ScriptParameter) function can also be used to retrieve the menu item value.

Return Type
Text
Format
CNSMenu_GetMenuValue
Related Items
CNSMenu_GetMenuChoice, CNSMenu_GetMenuName, CNSMenu_GetMouseButton, CNSMenu_GetMouseCoordinates
Example

Code:

CNSMenu_GetMenuValue

Result:

Returns the value that was assigned to the menu item the user last selected.