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

Array of webbrowsers

P: 1
Is it possible to access web browsers through arrays? I would like to run through a for loop instead of going through every statement one by one.
e.g.
For int i = 0 To MAX Step 1
Browser(i).Navigate("www.google.com")
Next

instead of
Browser1.Navigate("www.google.com")
Browser2.Navigate("www.google.com")
etc...

Is this possible? And how can I do it?
Thanks in advance
Jul 9 '12 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
you can always call them by their name as part of the objects array in a form.

Expand|Select|Wrap|Line Numbers
  1. For i = 1 to max
  2.     Me.Controls("Browser" & i).Navigate("www.google.com")
  3. Next
Jul 11 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.