>I have an odd one.
>
>_VFP.ActiveForm.Controls(1).Pages(2).Controls(1) through
>_VFP.ActiveForm.Controls(1).Pages(2).Controls(160) works fine.
>But
>Public lnIndex
>lnIndex = 1
>_VFP.ActiveForm.Controls(1).Pages(2).Controls(lnIndex)
>
>in the very next line blows up with
>OLE error 1429, error 31, subscript out of range. Anyone ever see that?
>
>And, worse, the code in a "test fixture" seems to work fine. But in the .app,
>BOOM.
Is there an ActiveX control anywhere on the form (or page)?
George
Ubi caritas et amor, deus ibi est