LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster array index value

Solved!
Go to solution

Hi All,

 

I have cluster consist of list box, 1D cluster array, combo box ..etc.

Would like the 1D cluster array display the info follow the combo box selection.

If user select "a" in combo box, the 1D cluster array will goto array index 0 and so on.

Attach with the code.

 

Thanks,

Simon

0 Kudos
Message 1 of 5
(934 Views)
Solution
Accepted by topic author SimonChin

Just write to the indexvals property.of the arrays.

 

altenbach_0-1689226526981.png

 

(it seems extremely convoluted to have the entire front panel a single cluster of controls. The user can change the index at any time, making it inconsistent with the combobox later. Why not use a ring instead of a combobox? )

 

0 Kudos
Message 2 of 5
(914 Views)

Hi Althenbach,

 

How you able to get the indexvals property of the arrays?

Is it because of the 1D cluster array inside the single cluster and not advisable?

 

SimonChin_0-1689229349039.png

 

The purpose using combo box is allow user to key in new sales order no and update the combo box string[] and match the new client info (deliver/ship to).

All the info save to database and retrieve when call this module.

 

Thanks,

Simon

0 Kudos
Message 3 of 5
(899 Views)
Solution
Accepted by topic author SimonChin

@SimonChin wrote:

 

How you able to get the indexvals property of the arrays?

Is it because of the 1D cluster array inside the single cluster and not advisable?

 

You right-click on the array container on the front panel..create..property node...indexvals

 

I don't understand your second comment.

Message 4 of 5
(895 Views)

Got it.. Thank you for the support.

 

-Simon

0 Kudos
Message 5 of 5
(879 Views)