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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the methods used in UFT to handle exceptions or run-time errors?

742


Is it possible to call from one action to another action in qtp?

676


What are the differences between quicktest professional (qtp) and winrunner?

671


What is smart identification in QTP?

718


What are the differences between qtp and winrunner?

616






Explain how Does Run time data (Parameterization) is handled in QTP?

636


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1679


Explain step generator in qtp?

741


What are the differences between quicktest professional and winrunner?

613


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

800


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1535


Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

1528


What are the Test design techniques you uses in ur project?

1576


How to recognise the webelement and verifying that webelement is enabled?

1730


What is Associate Repository in QTP 9.2 ?

687