Strings And Values [] Property
Short Name: StringsAndValues[]
Installed With: Base Package
Class: ComboBox Properties
Array of clusters containing the strings from which you can select in the combo box control and the values for each string. Use the Strings [] property if you do not need to specify custom values for each string.
If you wire strings to this property but you do not wire any values, LabVIEW sets the values equal to the strings you wired. If you wire the same values to this property, LabVIEW returns an error.
This property is similar to the Edit Items item on the shortcut menu of a combo box control and to the Labels and Values options on the Edit Items page of the Combo Box Properties dialog box.
Elements
Name | Description |
---|---|
String | A string in the combo box. |
Value | The corresponding value for the string. |
Remarks
The following table lists the characteristics of this property.
Available in Run-Time Engine and Real-Time Operating System | Yes |
Permissions | Read/Write |
Settable when the VI is running | Yes |
Loads the front panel into memory | Yes |
Need to authenticate before use | No |
Loads the block diagram into memory | No |
Remote access disallowed | No |
Must wait until user interface is idle | No |
Available with control VIs | No |
Available with global VIs | No |
Available with strict type definitions | No |
Available with polymorphic VIs | No |
Example
Refer to the Ring and Combo Box VI in the labview\examples\general\controls\ring.llb for an example of using the Strings And Values [] property.