str="QTP AUTOMATION TESTING"
here how many T are there in the str
finally i want to display the T
Answers were Sorted based on User's Feedback
Answer / abin
str="QTP AUTOMATION TESTING"
a= ubound(split(str,"T"))
msgbox a
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / karthik
i am thinking this will correct ...because he want to count
how many T are there ,for that it's correct..
and finally he want to display the T ,just read the question
once again ...if i wrong let me know...
str="QTP AUTOMATION TESTING"
dim l,m,n,p
l=len(str)
for i=1 to l
m=mid(str,i,1)
if m="T" then
n=n & m
end if
next
p=len(n)
msgbox P
msgbox n
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / ganesh
excellent answer by gabbar..out put 5 came
but question is not over ..finally display T ?
what about T.........
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prashaant kumar
str="QTP AUTOMATION TESTING"
a= split(str,"T")
msgbox ubound(a)
msgbox string(ubound(a),"T")
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pravati
x="qtp automation testingttt"
y=split(x,"t")
for i=0 to ubound(y)
msgbox ubound y(i)
next
Is This Answer Correct ? | 0 Yes | 0 No |
Dim strValue,i, blnFlag,incRement
strValue = "QTP AUTOMATION TESTING"
blnFlag = ""
incRement = 0
For i = 1 to Len(strValue)
If Ucase(mid(strValue,i,1)) = "T" Then
incRement = incRement+1
blnFlag = blnFlag &Ucase(mid(strValue,i,1))
End If
Next
Msgbox incRement 'Number of Ts are Displaying 5
Msgbox blnFlag
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / manjesh
a="QTP AUTOMATION TESTING"
b=split(a,"T")
c=Ubound(b)
msgbox c
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jay patel
dim str
str = "qtp automation testingttt"
a = split (str,"t")
for each x in a
msgbox x
next
msgbox ubound(a)
Is This Answer Correct ? | 2 Yes | 5 No |
Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent
how to associate object repository during runtime in qtp
Please can you give where can we get good QTP Training at Hi-Tech city Hyderabad?
how to capture data from images in QTP and produce them in excel sheet?
How Does Run time data (Parameterization) is handled in QTP?
How to add a runtime parameter to a datasheet?
I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??
what is test scheduleling?
How to find a window is minimized or not
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP?
want to learn real time automation project(QTP)?