02-22-2015 08:53 AM
hello all : )
im using an array of combo-box. the size of array is not fixed.
i want to use the strings[ ] property of combo-box to enter selection texts but since i have placed it inside the array im unable to use this property.
i used 'arrayelem' reference property and connected property node to it but didnt got strings [ ] in the selection.
so is there any way i can use the strings [ ] property
Solved! Go to Solution.
02-22-2015 09:39 AM
Is this helps?
02-22-2015 09:51 AM
no this wont help
according to ur method i can only pass a string value to the combo box(similar to enum selection)
i want to pass an array of strings to strings [ ] property of combo box so that user can have a list of selection
but thanx for trying ![]()
02-22-2015 09:56 AM
hmm, i see 🙂
I think it is not possible to have elements in an array with different properties. So you cannot have different strings[] property for different elements in the array.
But lets wait for a pro programmer for posting, we will see 🙂
02-22-2015 11:16 AM
02-22-2015 11:20 AM
02-22-2015 11:31 AM
ok can u tell me what is 'array 2' in ur vi ??
if im not wrong than its reference of the 'array'
but if it is true then it shouldnt have different name
grrrr... can u post ur vi ![]()
02-22-2015 11:39 AM
Array 2 is the reference to the Array.
The problem is Blokk used the built-in VI snippet to create that, which doesn't handle references very well. The Code Capture Tool is a much better method to create snippets. In his original code, those two property nodes were implicitly pointing to the Array control. The LV VI snippet tool breaks those references.
02-22-2015
11:44 AM
- last edited on
05-06-2025
01:56 PM
by
Content Cleaner
the picture what I posted is a snippet. It is a png file which also contains a vi:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US
I have found this post. I am just reading it:
It might help...
hmm, it is more complicated as I thought :))
edit: just to be CLEAR: so you want to create a new selection LIST for each of the array elements (comboboxes)) OR you just want to set all the comboboxes to a particular value which is ALREADY in the combobox list??
02-22-2015 11:55 AM
i tried blokks vi using for loop
it simply refreshed/replaced the last added string
but i want to enter same selections (array of strings) in each combo-box