By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,276 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,276 IT Pros & Developers. It's quick & easy.

problem with passing "Page" as parameter

P: n/a
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) = 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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.