How to get the vowels in QTP?

To get the vowels from the input string, use the below code.

str = "Madhavi"
For i= 1 to len(str)
var = mid(str,i,1)
Select Case var
       Case "a", "e", "i", "o", "u"
            msgbox  "Character: "  & var &  " is vowel"
       Case else
            msgbox "Character: "  & var &  " is not a vowel"
End Select 
  Next

Output:

Comments

Popular posts from this blog

Is QA a easy job?

Latest Version of TestComplete

Successful tester