Discussions au sujet de NI LabVIEW

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

how to get index value of combobox

Résolu !
Accéder à la solution

hi,

       how to get combobox index value and i know easly get index value in enum but i can't use enum in my application.i want both combobox value and index number. 

0 Compliments
Message 1 sur 3
4 622 Visites
Solution
Accepté par l'auteur du sujet GokulGKM

Hi madhanskm,

you're here on the french speaking forum, if you want to write in english it's better on the english speaking forum.

 

If you want to obtain the index number of a combobox selection, you can use the property-node strings and search the selected string in the array of values.

snippet_combobox.png

0 Compliments
Message 2 sur 3
4 618 Visites

You can too deselect the option "use string as values" and put item number, then convert the string-number to a real number, it could'be better.

0 Compliments
Message 3 sur 3
4 615 Visites