06-22-2009 03:38 PM
Hi
I am trying to make a pull down list in labview similar in manner to a webpage pulldown list found in "internet explorer" or any web browser.
I would like the contents of the pull down list to be that of the array. I have invested a lot of time trying to figure this problem out, however I have failed to come up with a solution.
I would greatly appreciate any help.
Thanks,
Philip
06-22-2009 03:58 PM
To clarify,
If I had a 1-D array of length 3, with values {"amber","alert","alligator"}
The resulting pulldown list would look like this
amber
alert
alligator
(note it should look internet explorer pulldown style) Thanks
06-22-2009 04:14 PM
06-22-2009 04:49 PM
Thanks, I am making progress.
Any idea how to fix this problem? I saw this working in an example. In the labview example, the pink rectangle above "StringsAndValues[]" was blue. How do I make it blue? Thanks.
06-22-2009 05:00 PM
06-22-2009 05:17 PM - edited 06-22-2009 05:20 PM
Hi Doom,
when switching on the context help for that property you would see that it requires an array of cluster of 2 strings...
What do you mean by "array location"? If you want the index of the choosen string you have to do a 1d array search through the array given by property "String[]" (or through your array of strings, as you want to set those strings anyway).
06-24-2009 09:12 PM
Hello,
You can only pass strings into this property node (pink). What I would suggest is just to use the Number to Decimal String conversion VIs to convert your integer (blue) in to string. Then build a 1D array of these values and pass it to the Strings[] property for the Combo Box.