LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we populate a combo box dynamically?

Just want to let you know that the later posted message and attached example solved the problem. Thank you for your help. Guangde
0 Kudos
Message 11 of 19
(5,350 Views)

Hi  S G,

 Im using labVIEW 7 so i can't able to open the file. can you tell me how its works.

 

all i want to do is, get the value from user and up to that value i need to populate.

 

 

0 Kudos
Message 12 of 19
(5,203 Views)

"2716jag" <x@no.email> wrote in message
news:1235639408802-860703@exchange.ni.com...
> Hi&nbsp; S G,&nbsp;Im using labVIEW 7 so i&nbsp;can't able to open the
file. can you tell&nbsp;me how its works.&nbsp;all i want to do is, get the
value from&nbsp;user and up to that value i need to populate.&nbsp;&nbsp;

Right click the combo box control, create a property node "Strings[]"
(Create>Property Node>Strings[]). Put the desired names in it
through this property node.

Regards,

Wiebe.


0 Kudos
Message 13 of 19
(5,199 Views)

thanks Wiebe.

 

0 Kudos
Message 14 of 19
(5,190 Views)

I have a very similar hurdle to get over. I would like to have a combo box or list box, which is populated by previously selected options. The list will be further populated as more choices are made over time. I'm almost positive that property nodes are the way to go here, but how exactly would one do this?

 

It's been a while since people have posted on this thread, so I guess I'm hoping for a miracle response here. thanks in advance

0 Kudos
Message 15 of 19
(5,085 Views)

Did you open S G's example in message #8?

 

You build your list of options into a string array and pass it to the Strings[] property node of the combo box.

0 Kudos
Message 16 of 19
(5,069 Views)

RavensFan,

 

I understand how to achieve a ComboBox control behaving like an indicator. The coding from S G will display an string array control and the ComboBox. I don't quite want that.

 

I really want to have a Combo or ListBox populated from a listing of items. These items will come from some pre-defined listing I create, somewhere else. Also, the list could/would ideally grow as new items are created in a separate, create-an-item method. These are some of the subtle differences in what I am trying to achieve vs. what was shown in the thread.

0 Kudos
Message 17 of 19
(5,048 Views)

csmrunman wrote:

RavensFan,

 

I understand how to achieve a ComboBox control behaving like an indicator. The coding from S G will display an string array control and the ComboBox. I don't quite want that.

 

What does his example have to do with a combobox as an indicator? 

 

 

I really want to have a Combo or ListBox populated from a listing of items. These items will come from some pre-defined listing I create, somewhere else. Also, the list could/would ideally grow as new items are created in a separate, create-an-item method. These are some of the subtle differences in what I am trying to achieve vs. what was shown in the thread.

 

 

His example shows how to programmatically populate the list of items in the combobox  If you want to grow the list, then you add items to the array and wire the array to the Strings[] property node he has shown.  You can maintain the list of strings in a shift register if needed.

 


Here is a more detailed example.  If your differences are more subtle, then you are going to have to explain a little bit more.

0 Kudos
Message 18 of 19
(5,046 Views)

Thx for the info, it helped me too.

0 Kudos
Message 19 of 19
(3,498 Views)