For Loop

2 posts / 0 new
Last post
claressa.lynne
Offline
Joined: 09/10/2020 - 11:43
For Loop

Hello,
I am sure this has come up before but does anyone know how you can put a for loop similar to C++ but in IDEA code? I am trying to have a portion of my macro run through the same code over and over again until a final database is formed that doesn't have any outputs.
Any guidance would be much appreciated.
Thanks!
-Claressa

scotchy33
Offline
Joined: 09/05/2012 - 15:51

You could use the Do Until Loop, see below:
 
Set db = Client.OpenDatabase("??????.IMD")
x = db.Count
           Do Until x = 0
 ' Do whatever you want to do to the database here:
 
           Loop  
           Set db = Nothing