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 |
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
in a web table , i want you to click a particular object inside cell
hi i have one issue while selecting weblist i want show one particalur item in weblist .ex one weblist they are monday to sunday i want show the reporter like thurday in particular weblist can you help me about this thanks balaji
What are the details steps to connect a remote mysql database in QTP
How to create runtime property for an object?
How many types of Check Point in QTP
What is test object model in quicktest professional (qtp)?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
Why bpt?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
How iteration is related to Test Results in QTP?