LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create array for activex control

Now I am using microsoft form 2.0 combo box activex control in LabVIEW. My problem is I cannot create control array for the combobox like in visual basic. In visual basic, if we want to create control array for combo box or else, we just copy and paste onto the same form.
For example if I copy combo1 and paste it onto the same form it will become 2 combo box i.e combo1(0) and combo1(1). So,how can I make same like that in labview using that activex?
0 Kudos
Message 1 of 4
(3,035 Views)
> For example if I copy combo1 and paste it onto the same form it will
> become 2 combo box i.e combo1(0) and combo1(1). So,how can I make same
> like that in labview using that activex?

The terminals in LV give you the refnum to the controls, and you can
place those refnum values into an array so that it can be index using a
loop, etc. To do this for a small number of control, use the Build
Array node.

Greg McKaskle
0 Kudos
Message 2 of 4
(3,035 Views)
I'm sorry,I do not really understand. I've tried what have you told me by using automation refnum, but it is not working.
I attached the file. if, let say , I want to make this three combobox red back colour simultanously, how to do it?
0 Kudos
Message 3 of 4
(3,035 Views)
Hi,
Please take a look at the following document that addresses the question I think you may be asking. If not, then please clarify:

Can I Place an ActiveX Container into a Cluster or Array?

I hope this helps.

Sincerely,
Feroz
National Instruments
0 Kudos
Message 4 of 4
(3,035 Views)