12-14-2007 10:46 AM - edited 12-14-2007 10:46 AM
12-14-2007 10:54 AM
12-14-2007 11:04 AM
12-14-2007 11:11 AM
Sorry I looked at it too fast. Rather than All Objects which will include decorations, thus the z order, use Controls[].
The order of those references will be the same as the cluster to array primative you are using. From that you can then get an array of all the items or each items name 1 at a time. See the attached VI.
12-15-2007 11:22 AM
You're doing it wrong! The Insert Data VI inserts a single row, with each element in the cluster corresponding to a column in that row. What you actually need to is wire the entire cluster into the data input of the VI (you don't need to convert it explicitly to a variant and you definitely don't need the for loop) and there should be a columns or fields input where you can specify the names of the fields which correspond to the cluster elements.
There are some examples that come with the DB toolkit, and some of them are bound to show how you're supposed to use this.
As a side issue, even if you did need the for loop, you don't have to explicitly set N when you use auto-indexing - LabVIEW will run the for loop the smallest number of times of all its indexing inputs.