What In-string function will do?



What In-string function will do?..

Answer / gayathrin

The InStr function returns the position of the first
occurrence of one string within another.
Example :

dim txt,pos
txt="This is a beautiful day!"
pos=InStr(txt,"his")
document.write(pos)

Output :
2

Is This Answer Correct ?    8 Yes 2 No

Post New Answer

More QTP Interview Questions

Can anyone explain me about child objects in detail;when they are used and why do we need them ? please give me sample code for this if possible.

1 Answers   Virtusa,


How to get the particular property value?

0 Answers  


Is there any MS Access addin in QTP?

7 Answers  


What is Object Spy?

7 Answers   JKH, Ordain Solutions,


I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?

6 Answers   NIIT,






What is quicktest professional (qtp)?

0 Answers  


who is developed QTP ? is it from Mecury or HP

2 Answers  


How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application

1 Answers  


What are default add-ins in qtp?

14 Answers   Semantic Space,


If I change the property value at runtime is it effect is object repository?

0 Answers  


i have qtp 9.5 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com

2 Answers  


wht is the difference between action and functio?

3 Answers  


Categories