Or if you want to get even more fancy...I have a library I recently developed so that I can create a task using an XML file. At some point, I just have a bunch of child attributes that are used to declare each channel. I loop on that array and then each channel defines itself and add to the task. I have it this way so that I can have each channel be something different (voltage, current, temperature, etc) and it is all defined in a simple XML file.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5