I searched the forums and found a great post dealing with a string array... but my array has a complication:
It's a UDT array, and some of the elements of the UDT are arrays themselves. So pretty much my array looks like this:
MyArray(1 to 2)
MyArray(1).Name
MyArray(1).Number
MyArray(1).Price(1 to 5)
MyArray(2).Name [string]
MyArray(2).Number [single]
MyArray(2).Price(1 to 4) [array of singles]
Except that there are around 20 sub elements instead of 3, and there are several hundred elements instead of 2. If there's no easier way I could just loop through and manually rearrange the array as needed... but it seems like there should be some type of API solution or something, because this is a common question.




Reply With Quote