How to check and display a particular word from a paragraph?



How to check and display a particular word from a paragraph?..

Answer / dinesh1433

strParagraph="There are subtle differences between these methods. The CreateTextFile is used to create a file and a
TextStream object. This method can optionally overwrite an existing object. The OpenTextFile opens an
existing file and returns a TextStream object, but can optionally create the filename if it does not exist. The
OpenAsTextStream object opens an existing file and returns a TextStream object."

str="opens"

if Instr(strParagraph,str)>0 then
msgbox "The particular word found from the paragraph"
msgbox str

else
msgbox "particular word not found from the paragraph"
end If

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

In QTP where i have to concentrate more in the Interview point of View

1 Answers  


Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


How you can replace string in qtp?

0 Answers  


what is L-trim function will do?

2 Answers  






What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do?

7 Answers   Verizon,


The hybrid framework can be implemented for any application. Is it true?

0 Answers  


How cookies can be tested in QTP?

2 Answers   Deloitte, TCS,


How many types of actions are there in quicktest professional?

0 Answers  


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

0 Answers   Livetek,


Write a QTP script to print all the link names displayed in a web page

4 Answers   TCS, Virtusa,


What are private functions in QTP? How they can be called from the function library?

0 Answers   HCL,


Categories