str = "india is my country"
For i=1 to len(str)
        cnt =0
st = mid(str,i,1)
For j=1 to len(str)
If mid(str,j,1)=st Then
        cnt =cnt +1
End If
Next
If  cnt>1Then
        print st & " repeats " & cnt & "times"
End If
Next

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to