Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Do...Until Loop Expression

$
0
0
Hello :)

I'm a bit stumped on how to get over this problem I'm having with the Do ... Until loop expression.

As you can see below, I'm trying to make the variable gridID so it'll be "ctl01, ctl02, ctl03" and so on. My only problem comes to double digits, where it'll turn into "ctl010" which won't match up to the IE form element name.

Is there a way to either make $i into 01, 02 with a zero infront of otherwise single digits, or would I have to think of a conditional statement with two different versions of the equation?

[ autoit ]      
Local $i = 2 Do $gridID = "ctl0"&$i" $i = $i + 1 Until $i = 15

Thanks :)

Viewing all articles
Browse latest Browse all 12506

Trending Articles