Creating multidimensional arrays with the split command
Posted: Mon Jun 06, 2011 4:27 am
I used the split command to create an array. I retrieved the data from a SQL command that returned one row and everything worked out ok.
I then changed the SQL command to return more than one row. I can't figure out how to get the split command to work properly. The data that comes back from the SQL command is as follows:
1, 3.375, 360, 1
2, 3.375, 360, 1
3, 3.875, 360, 1
4, 4.625, 360, 1
I'd like to get the split command to work so I have an array that is 4 by 4. Since I'll be using the information in the array in some math I need to be able to access each item in the array. As an example, the 3.875 should be tList[3,2].
Any ideas?
Thanks,
Peter
I then changed the SQL command to return more than one row. I can't figure out how to get the split command to work properly. The data that comes back from the SQL command is as follows:
1, 3.375, 360, 1
2, 3.375, 360, 1
3, 3.875, 360, 1
4, 4.625, 360, 1
I'd like to get the split command to work so I have an array that is 4 by 4. Since I'll be using the information in the array in some math I need to be able to access each item in the array. As an example, the 3.875 should be tList[3,2].
Any ideas?
Thanks,
Peter