Example Code

Change String Values in Combo Box Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows how to programmatically change the values listed in a combo box.

 

Description

The Combo Box control is set up like an Enumerated control in that the values of the items are zero-indexed numeric values. In this example, a user can define each item in combo box without going through to "edit items" property.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Enter items in an array.

2. Run VI and check combo box.

 

Additional Information or Resources

 2012.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Bryan H.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Sri.VI
Member
Member
on

Thanks Hesloppy,,,,

I was wondering and tried a lot , but yours is the Best and Easy To use...