LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Dataflow_G

Insert quotes around auto filled enum text in case structure

Status: New

When an enum is wired up to a case selector, new cases for that enum can be added by typing the first few letters of the enum item and hitting enter to auto insert the text. Pressing the arrow keys or home/end will also insert the enum text while allowing for further editing.

 

When enum text contains a comma, pressing enter after typing the first few characters treats the enum text as a comma delimited string. Rather than inserting the enum text as shown in the auto complete preview, the text is first split on commas, with the result being a case configured for two or more nonexistent enum entries.

enum_quote_idea.png

 

This idea is to automatically enclose the enum text in quotes after hitting enter (or any key which causes the enum text to be auto inserted), and before any comma delimitation takes place.

 

(Typing a leading double quote before typing the enum text will auto insert the trailing quote when hitting enter and avoid aspects of this issue, but it'd be nice if LabVIEW did it all automatically)