Quote: "Thank you again, PTC! I doubt I could have figured that out quickly."
no problem, glad to help, its actually quite a common mistake to make, just always remember that if your going to be removing items from the array you are indexing always do reverse iteration.
Quote: "as I have not been able to get insert to work for arrays defined as a type."
when adding to a type array I usually define a temporary type, fill the data and then add to the array, I never had any problems doing it like this
Type myType
stringValue as string
integerValue
EndType
global myTypeArray as myType[]
tempType as myType
tempType.stringValue="some string"
tempType.integerValue=123
myTypeArray.insert(tempType)
Quote: "So what actually happens when you increase the array size like that?"
using the .length method would simply add an empty array element and you would need to fill the data giving the new index to the array, IMO using .insert() with a temp type is much tidier
Type myType
stringValue as string
integerValue
EndType
myTypeArray as myType[]
newsize = myTypeArray.length+1
myTypeArray.length=newsize
myTypeArray[newsize].stringValue="some string"
myTypeArray[newsize].integerValue=123