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

Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?

2 Answers  


I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  


How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.

2 Answers   Accenture, CSC,


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


several browsers opened. write QTP script to close all browsers except gmail.

1 Answers   Thomson Reuters,






What is the concept of hooking in QTP?

1 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

2 Answers  


What is TOM in QTP?

0 Answers  


What is Environment Variable and when we apply this in QTP?

4 Answers  


your doing one project testing then how u know itis wheather web based application or windows based application?

2 Answers  


Explain the terms test and business component?

0 Answers  


what are the attributes of QTP?

3 Answers  


Categories