It's not a pageframe error but like Jess said, an array subscript error with one of the controls within that particular page. What other code is in the page's Activate method or in the Refresh method?
>>I have a pageframe with 3 pages. I put this.refresh() in the Activate method for page 2. When I click page 2, it is ok for the first time. But it gives me the error message "Subscript is outside the defined range." in the second time. What is the reason? Anyone could help? TIA!
>
>The error might be caused by using an index for an array variable which is outside the defined one.
>
>DIMENSION MYARRAY[2,2]
>
>MYARRAY[3,2] = 10 && this line gives the error you mentioned.
It's "my" world. You're just living in it.