how to count the word "IS" is repeated in the application
using DP

Answer Posted / kis

str="mismismis"
p=1
cnt=0
while instr(p,str,"is")>o
cnt=cnt+1
p=instr(P,STR,"is")+les("is")
wend
msgbox"is is repeted for "&cnt

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are actions and functions different in QTP?

654


We stored into the objects OR and then write the scripting

1539


how u will evaluate the tool for test automation?

1365


How to use parameterization in qtp?

618


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1519






Can we run test with out adding object in object repository? How it is possible?

540


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2139


What is ‘object spy’ and what is the function of object spy in qtp?

570


How to find the difference between 2 dates in qtp?

576


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1740


What does mean by Scope of Automation?n How we defined it?

1570


What is different command used in command Prompt while using QTP?

1745


How will you handle java tree in qtp?

621


Hi Samrat, Thank u very much, what u said it is right.

1340


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

1415