Overview
This example VI demonstrates the method to programmatically create an Enum using VI Scripting.
Description
The VI first creates a new VI at the path selected by the user in the File Dialog. It then opens a reference to the Block Diagram of this new VI and feeds this into a New VI Object function that creates an Enum Constant. This constant is then populated with the items from the String Array Control.
Once it has done this, and closed off the references, it saves the changes to the VI and then opens it for you to view.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.