Programmatically Populating an Enum Control
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
How can I programmatically populate an enum control with an array of strings?
You can use the Strings property of an enum control to programmatically populate it. It should be noted that since the strings in the Strings property are part of the data type of the enum control, they can only be changed during editing time. So, you will need to set the Strings property from another VI so that the VI containing the enum is not running.
The steps needed are:
The attached VIs demonstrate this technique.
Download both attached files. Open
KnowledgeBase 20TEBKLJ: How Do I Programmatically Change the Entries of an Enumerated Type?
Report Date: 09/09/2004
Last Updated: 11/18/2012
Document ID: 3D8AH34P