Hi,
For the length of an array you need $#, i.e. $#Org.
Ignore this, it's a blunder.
In reply to Re: Strange compile error? by 1nickt in thread Strange compile error? by gelbukh