Complete the following steps to add strings to the list of strings in a combo box control.
- Right-click the combo box control and select Edit Items from the shortcut menu to display the Edit Items page of the Combo Box Properties dialog box.
- Double-click in an empty cell in the Items column and enter the string you want to display in the list of strings for the combo box control. You also can place the cursor in a cell that already contains a string, click the Insert button to create an empty row above the cell, and enter a string in the new cell.
Enter a hyphen (-) in an empty cell to create a separator in the list of strings for the control.
||Note To create an item that contains only a hyphen that does not appear as a separator in the control, enter a space before or after the hyphen.|
- (Optional) After you enter a string in the Items column, LabVIEW adds the same string to the corresponding cell in the Values column. If you want the string that appears in the combo box control in the front panel window to be different than the string value the combo box terminal on the block diagram returns, specify a custom value for each string.
- Click the OK button.
By default, the combo box control allows users to enter string values not already in the list of strings defined for the control.
You also can use the ComboBox properties to add strings programmatically.