0 votes
in QuickTest Professional (QTP) by
In QTP how you can exit for loop?

1 Answer

0 votes
by

You must use “Exit For” statement to exit “for loop” in QTP. “Exit For” statement will get the control out of the “for loop”

For count= 1 to 3

TempNum= mid(Tempstr,count,1)

If isnumeric(TempNum) Then

LenghtNum = LengthNum & TempNum

Else

Exit For

End If

Next

GetStrLenNumber = LengthNum

Related questions

0 votes
asked Apr 25, 2020 in QuickTest Professional (QTP) by Robindeniel
0 votes
asked Apr 25, 2020 in QuickTest Professional (QTP) by Robindeniel
...