mesg2anil
13 years agoRegular Contributor
Object Name Incrementing...
Hi,
I need help on incrementing the number within the object name... I'm using below code...
For i = 1 to 5
Browser.Item("gvCarParkDetails_ctl02_chkIsLease").Click
Next
Here, within the object name "Item("gvCarParkDetails_ctl02_chkIsLease")" u can find "02", each time for loop increments, I want 02 to get incremented as well like, 02, 03, 04, 05 etc...
Any ideas here please??
I need help on incrementing the number within the object name... I'm using below code...
For i = 1 to 5
Browser.Item("gvCarParkDetails_ctl02_chkIsLease").Click
Next
Here, within the object name "Item("gvCarParkDetails_ctl02_chkIsLease")" u can find "02", each time for loop increments, I want 02 to get incremented as well like, 02, 03, 04, 05 etc...
Any ideas here please??