Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Adding Strings in Combo Box Controls

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

Complete the following steps to add strings to the list of strings in a combo box control.

  1. 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.
  2. 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.
  1. (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.
  2. 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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit