Link to home
Start Free TrialLog in
Avatar of majala
majala

asked on

variables between another variables

How can use counter between another variable?

If I have ten forms (form1...form10)
example:

for i = 1 to 10

  form&i.refresh ??

next

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of PatrickVD
PatrickVD

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paulstamp
paulstamp

This is not really an answer to your general question, but you could use the forms collection to achieve what you are trying to do in the example :

Dim frmTemp as form

For Each frmTemp in Forms
    frmTemp.Refresh
Next frmTemp

Hope that helps.
Sorry PatrickVD - your comment appeared while I was submitting mine !
dim f as form
for each f in forms
    f.refresh
next f
Sorry all ..yours appeared while i was submitting mine ...LOL