Specifying Custom Values for Combo Box Strings
- Updated2026-05-29
- 1 minute(s) read
You can define a custom value for each string of a combo box. Use this capability to pass a value on the block diagram that is different from the label of a given item on the front panel.
You can use combo box properties to modify item values interactively. The combo box properties use the following terminology:
Note This capability is for differentiating combo box entries on the
front panel and the block diagram. This is distinct from allowing users to enter undefined
values in the combo box control at run time.
To specify a custom value for a string in a combo box control, complete the following steps.
-
Right-click the combo box control and select Edit
Items....
The Edit Items page of the Combo Box Properties dialog box appears.
- Remove the checkmark from the Values match Items checkbox.
- Double-click in the cell in the Values column that contains the value you want to change.
- Enter the string value you want to use on the block diagram when the user selects the corresponding label in the control.
- Repeat steps 3 and 4 for each value you want to change.
- Click OK.
You can also use the Strings And Values [] property to specify custom values for a combo box programmatically.