LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit the items of a combo-string constant?

Solved!
Go to solution

I am thinking about a RCF toolkit that generates a combo constant that has the current set of cases for a case-structure (like a string-based enum). It would lack auto-updating but would prevent typo's.

I could not get it to set a list of strings, but it wouldn't return the list of strings either. The following snippet errors out (error 1058?), if I prepare a diagram with only a combobox constant (like the one in the lower left). Anybody knows how to access these options?

dropboxcombo.png

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 1 of 3
(4,240 Views)
Solution
Accepted by topic author TCPlomp

Try to retrieve Strings and Values[] and see if that helps.

0 Kudos
Message 2 of 3
(2,960 Views)

String and Values works.

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 3
(2,960 Views)