suppose the given string str = {"vamsikrishna%%&%*&**"}
count the no of vowels and special characters are repeated
Answers were Sorted based on User's Feedback
Answer / ganesh
str ="{vamsikrishna%%&%*&**}"
For i=1 to len(str)
a=mid(str,i,1)
b=asc(a)
If b>=97 and b<=122 Then
d=d&a
else
e=e+1
End If
Next
For i=1 to len(d)
g=mid(d,i,1)
If g="a" or g="e" or g="i" or g="o" or g="u" Then
f=f+1
End If
next
count1=f+e
print count1
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / koteswar
str = "vamsikrishna%%&%*&**"
z= " "
For i = 1 to len(str)
x = mid(str, i, 1)
If Instr(1,z,x,1) Then
Else
z=z+x
msgbox z
End IF
For j = 1 to len(z)
a= mid(z,j,1)
b=split(str,a)
c=Ubound(b)
Next
msgbox c
Next
| Is This Answer Correct ? | 0 Yes | 2 No |
In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.?
How to merge the two object repositories
explian about the qtp frame work? where u can use it in your project?
How to match two doc files using qtp requirment is:- each and every single word of a doc file should be matched with the another doc file. can someone send me the code.
What is descriptive Programming in qtp.
In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, after run..........it shows the already exists. so how to enter random ro mmultiple names names into webedit box(company Name). without using DATATABLE THanks Ramesh
examples of user definied functions? how to write user defined functions in qtp9.2?
Can you tell me QTP is support for GIS(Geography Information System) Based Software.
how to create the varibles and how these are connect to qtp? plz tell me
I want different types of discriptive programming statments coded for different types of web-objects?Give syntax and example?
Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com
1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that)