Owning Class: support
Requires: MathScript RT Module
out = menu(title, option1, option2, ...)
Shows a menu with options for you to select.
| Name | Description |
|---|---|
| title | Specifies the title in the menu. title is a string. |
| option1 | Specifies an option in the menu. option1 is a string. |
| option2 | Specifies an option in the menu. option2 is a string. |
| Name | Description |
|---|---|
| out | Returns the index of the option you select. out is an I32 scalar. If you close the menu without making a selection, out is 0. |
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | No (returns error or is ignored) |
| Supported on RT targets | No |
K = menu('Select from:', 'Option 1', 'Option 2', 'Exit')