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



str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

Answer / abin

str="QTP AUTOMATION TESTING"
a= ubound(split(str,"T"))
msgbox a

Is This Answer Correct ?    10 Yes 1 No

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

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

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

Answer / gabbar

msgbox len(str)-len(REPLACE(str,"T",""))

Is This Answer Correct ?    4 Yes 1 No

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

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

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

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

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

Answer / lak

Karthik is correct

Is This Answer Correct ?    0 Yes 0 No

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

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

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

Answer / cnu_thatavarthi

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

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

Answer / manjesh

a="QTP AUTOMATION TESTING"
b=split(a,"T")
c=Ubound(b)
msgbox c

Is This Answer Correct ?    0 Yes 0 No

str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to disp..

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

Post New Answer

More QTP Interview Questions

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.

0 Answers  


in a web table , i want you to click a particular object inside cell

2 Answers  


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

5 Answers  


What are the details steps to connect a remote mysql database in QTP

1 Answers   Verizon,


How to create runtime property for an object?

7 Answers  






How many types of Check Point in QTP

2 Answers   R Systems,


What is test object model in quicktest professional (qtp)?

0 Answers  


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 ?

0 Answers  


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.

2 Answers  


Why bpt?

0 Answers  


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.?

0 Answers  


How iteration is related to Test Results in QTP?

1 Answers  


Categories