Hi Erik,
$aUnit is a collection not an array. The for each is not accessing the object by an index, rather it is calling a MoveNext method on the collection and assigning the result to $item at the end of each loop. I think the behaviour of KiXtart is correct and expected in this case.
Regards,
Richard
|