Hi,
What you did with the listbox is wrong. You transformed the path and the other
strings into an array of bytes to feed the listbox. With that you set the actual value
of the listbox but you don't change the content of it.
I included a vi (7.1) to show you an example of how to use a multicol. Listbox.
You have to use a property node change the name of the diferent items of
the listbox. After that, when a user click on the listbox, he can select one row
for example. The value returned by the listbox will be the number of the row
clicked. If multiple row can be selected (right click on the listbox front panel
to see some of the properties) it will be an array that will be returned.
For example, you click on the first row => you get 0 from the listbox.
The property I used to change the item names is of course : Item names
It is a 2D array of strings that correspond to the item names.
To fill in the listbox with the path and the descriptions, you have to transform
the path into a string (path to string vi ( string => string/array/path conversion)
So, you could make an array of paths that you would change to an array of strings =>
Build a 2D array with this array and another array containing the descritpions =>
transpose this array (because when you build a 2D array with 2 1D array, the first array
will be the first row and the second, the second row, etc =>
Feed the listbox property node with the 2D array
Dai
LV 7.1 - WIN XP - RT - FP