Are you really needing to allow for 1000 channels?
Why do you have all of that information in teh config file if the only thing you are pulling out are the channel names? If that is all you need, then just generate the names dynamically when you select the sensor(s)
And why are you adding a dimension to the array containing the channel names?
I am trying to grasp what your objective is but your code is a bit convoluted and you are not making it very clear what you are trying to do. For instance, you are applying Item Names to the list box contents after you use the values in the Listbox to index the arrays. Not making sense.
Go through a simple example. When you select ONLY sensor 1, wht do you expect to get at the end. If you select sensor 1 AND 2, what do you expect to get. Put it in a flow chart format that will put it in a linear flow of data.
Doug
"My only wish is that I am capable of learning each and every day until my last breath."