If Then statement inside For loop - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: If Then statement inside For loop (/Thread-If-Then-statement-inside-For-loop) |
If Then statement inside For loop - Mala - 02-23-2011 Hi, Below code is giving me some errors and am not able to figure it out why the errors are showing up?? Code: Dim i The above when saved gives me following errors --Unexpected Next --Expected End If So changed the next and end if accordingly - but of no use. Can anyone help me please??? RE: If Then statement inside For loop - manishbhalshankar - 02-23-2011 Hi Mala, It is ElseIf. Remove the space between else and if from your code. RE: If Then statement inside For loop - Mala - 02-23-2011 Thanks Manish RE: If Then statement inside For loop - basanth27 - 02-23-2011 Did that work? |