View Single Post
  #2 (permalink)  
Old April 1st, 2009, 08:07 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

If banner is some kind of ActiveX object, then *probably* you will do
Code:
pic[0] = new banner(rr,102,"offer2.asp")
But if banner is a VBScript class, you can't construct and initialize it in a single statement, unfortunately.

You'd have to do something like
Code:
b = New banner
b.initialize rr, 102, "offer2.asp"
pic[0] = b
But it's not clear to me how you are going to use an ASP page (that is, "offer2.asp") in a ".vbs" file.
Reply With Quote
The Following User Says Thank You to Old Pedant For This Useful Post:
rtr1900 (April 13th, 2009)