468,780 Members | 2,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,780 developers. It's quick & easy.

problem with passing "Page" as parameter

Am newbie to VB script. Am struck with a problem.
I am trying to use an array of pages ( many pages added
in "multipage" control).
And am using a for loop sending each page item to a
procedure and which would set the property of the page.

But its failing. I get runtime error as :

"Run time error :424
Object required. "

My code is as follows

Private Sub clustInfo()
Dim hidePageArray
Dim pageName
hidePageArray = Array(Page1, Page2, Page3 _
Page4, Page5, Page6)

containerInfoPage.Visible = True

For Each hidePageItem In hidePageArray
sp hidePageItem
Next hidePageItem
End Sub

Private Sub sp(ByVal pg As Page)
containerInfoPage.pg.Visible = True
End Sub

PS: Here "containerInfoPage" is name of "multipage" control.
Also how can i pass entire array it self to the Sub "sp" .

can some one let me know what is going wrong here ?

thanks and regds
Jul 17 '05 #1
0 1375

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jim | last post: by
2 posts views Thread by TR | last post: by
6 posts views Thread by James Yang | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.