Harry,
Rather than using a public array for this you should consider using an array property attached to the cbo itself or to the form. Using a public array keeps you from being able to run this form more than once at a time.
>attachfile=Getfile()
>If Empty(Thisform.popattached.RowSource)
> Public Array parray(1)
>Else
> Dimension parray(Alen(parray)+1)
>Endif